2021-01-21 17:00:13 +00:00
|
|
|
{ lib, stdenv, fetchzip }:
|
2017-06-03 14:46:35 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2020-03-18 21:50:55 +00:00
|
|
|
version = "2.1.0";
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "half";
|
2017-06-03 14:46:35 +01:00
|
|
|
|
|
|
|
src = fetchzip {
|
|
|
|
url = "mirror://sourceforge/half/${version}/half-${version}.zip";
|
2020-03-18 21:50:55 +00:00
|
|
|
sha256 = "04v4rhs1ffd4c9zcnk4yjhq0gdqy020518wb7n8ryk1ckrdd7hbm";
|
2017-06-03 14:46:35 +01: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-01-21 17:00:13 +00:00
|
|
|
meta = with lib; {
|
2017-06-03 14:46:35 +01:00
|
|
|
description = "C++ library for half precision floating point arithmetics";
|
|
|
|
platforms = platforms.all;
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = [ maintainers.volth ];
|
|
|
|
};
|
|
|
|
}
|