nixpkgs/pkgs/development/libraries/half/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

26 lines
653 B
Nix
Raw Normal View History

{ lib, stdenv, fetchzip }:
2017-06-03 13:46:35 +00:00
stdenv.mkDerivation rec {
2021-08-14 09:54:38 +00:00
version = "2.2.0";
pname = "half";
2017-06-03 13:46:35 +00:00
src = fetchzip {
url = "mirror://sourceforge/half/${version}/half-${version}.zip";
2021-08-14 09:54:38 +00:00
sha256 = "sha256-ZdGgBMZylFgkvs/XVBnvgBY2EYSHRLY3S4YwXjshpOY=";
2017-06-03 13:46:35 +00:00
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 lib; {
2017-06-03 13:46:35 +00:00
description = "C++ library for half precision floating point arithmetics";
platforms = platforms.all;
license = licenses.mit;
maintainers = [ ];
2017-06-03 13:46:35 +00:00
};
}