mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-10-03 21:40:12 +00:00
30 lines
690 B
Nix
30 lines
690 B
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchzip,
|
|
}:
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
version = "2.2.0";
|
|
pname = "half";
|
|
|
|
src = fetchzip {
|
|
url = "mirror://sourceforge/half/${finalAttrs.version}/half-${finalAttrs.version}.zip";
|
|
sha256 = "sha256-ZdGgBMZylFgkvs/XVBnvgBY2EYSHRLY3S4YwXjshpOY=";
|
|
stripRoot = false;
|
|
};
|
|
|
|
buildCommand = ''
|
|
mkdir -p $out/include $out/share/doc
|
|
cp $src/include/half.hpp $out/include/
|
|
cp $src/{ChangeLog,LICENSE,README}.txt $out/share/doc/
|
|
'';
|
|
|
|
meta = {
|
|
description = "C++ library for half precision floating point arithmetics";
|
|
platforms = lib.platforms.all;
|
|
license = lib.licenses.mit;
|
|
maintainers = [ ];
|
|
};
|
|
})
|