2021-02-05 17:12:51 +00:00
|
|
|
{ lib, stdenv, fetchzip }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2021-08-18 13:19:15 +00:00
|
|
|
version = "2.2.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "half";
|
|
|
|
|
|
|
|
src = fetchzip {
|
|
|
|
url = "mirror://sourceforge/half/${version}/half-${version}.zip";
|
2021-08-18 13:19:15 +00:00
|
|
|
sha256 = "sha256-ZdGgBMZylFgkvs/XVBnvgBY2EYSHRLY3S4YwXjshpOY=";
|
2020-04-24 23:36:52 +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/
|
|
|
|
'';
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "C++ library for half precision floating point arithmetics";
|
|
|
|
platforms = platforms.all;
|
|
|
|
license = licenses.mit;
|
2022-07-14 12:49:19 +00:00
|
|
|
maintainers = [ ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|