half: init at 1.12.0
This commit is contained in:
parent
0886c1b321
commit
ede0d138fd
25
pkgs/development/libraries/half/default.nix
Normal file
25
pkgs/development/libraries/half/default.nix
Normal file
@ -0,0 +1,25 @@
|
|||||||
|
{ stdenv, fetchzip }:
|
||||||
|
|
||||||
|
stdenv.mkDerivation rec {
|
||||||
|
version = "1.12.0";
|
||||||
|
name = "half-${version}";
|
||||||
|
|
||||||
|
src = fetchzip {
|
||||||
|
url = "mirror://sourceforge/half/${version}/half-${version}.zip";
|
||||||
|
sha256 = "0096xiw8nj86vxnn3lfcl94vk9qbi5i8lnydri9ws358ly6002vc";
|
||||||
|
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 = with stdenv.lib; {
|
||||||
|
description = "C++ library for half precision floating point arithmetics";
|
||||||
|
platforms = platforms.all;
|
||||||
|
license = licenses.mit;
|
||||||
|
maintainers = [ maintainers.volth ];
|
||||||
|
};
|
||||||
|
}
|
@ -2327,6 +2327,8 @@ with pkgs;
|
|||||||
|
|
||||||
hal-flash = callPackage ../os-specific/linux/hal-flash { };
|
hal-flash = callPackage ../os-specific/linux/hal-flash { };
|
||||||
|
|
||||||
|
half = callPackage ../development/libraries/half { };
|
||||||
|
|
||||||
halibut = callPackage ../tools/typesetting/halibut { };
|
halibut = callPackage ../tools/typesetting/halibut { };
|
||||||
|
|
||||||
hardinfo = callPackage ../tools/system/hardinfo { };
|
hardinfo = callPackage ../tools/system/hardinfo { };
|
||||||
|
Loading…
x
Reference in New Issue
Block a user