git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #26351 from volth/half-1.12.0

half: init at 1.12.0

commit2d2a3efab061c32a46ed197a88e7e80977c543d8 authorPascal Wittmann <PascalWittmann@gmx.net> dateSat 3 Jun 2017, 19:14 (9 years ago) parentbdb1068ede0d13
2 files changed+27
pkgs/development/libraries/half/default.nix+25 pkgs/top-level/all-packages.nix+2
pkgs/development/libraries/half/default.nixnew file+25
@@ -0,0 +1,25 @@
1+{ stdenv, fetchzip }:
2+
3+stdenv.mkDerivation rec {
4+ version = "1.12.0";
5+ name = "half-${version}";
6+
7+ src = fetchzip {
8+ url = "mirror://sourceforge/half/${version}/half-${version}.zip";
9+ sha256 = "0096xiw8nj86vxnn3lfcl94vk9qbi5i8lnydri9ws358ly6002vc";
10+ stripRoot = false;
11+ };
12+
13+ buildCommand = ''
14+ mkdir -p $out/include $out/share/doc
15+ cp $src/include/half.hpp $out/include/
16+ cp $src/{ChangeLog,LICENSE,README}.txt $out/share/doc/
17+ '';
18+
19+ meta = with stdenv.lib; {
20+ description = "C++ library for half precision floating point arithmetics";
21+ platforms = platforms.all;
22+ license = licenses.mit;
23+ maintainers = [ maintainers.volth ];
24+ };
25+}
pkgs/top-level/all-packages.nix+2
@@ -2327,6 +2327,8 @@ with pkgs;
23272327
23282328 hal-flash = callPackage ../os-specific/linux/hal-flash { };
23292329
2330+ half = callPackage ../development/libraries/half { };
2331+
23302332 halibut = callPackage ../tools/typesetting/halibut { };
23312333
23322334 hardinfo = callPackage ../tools/system/hardinfo { };