blob: 7d5b6037c4c5da9a727bbd29d0f9b50c00f1cbbc (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
{
lib,
stdenv,
fetchzip,
}:
stdenv.mkDerivation (finalAttrs: {
version = "2.2.0";
pname = "half";
src = fetchzip {
url = "mirror://sourceforge/half/${finalAttrs.version}/half-${finalAttrs.version}.zip";
sha256 = "sha256-ZdGgBMZylFgkvs/XVBnvgBY2EYSHRLY3S4YwXjshpOY=";
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 = {
description = "C++ library for half precision floating point arithmetics";
platforms = lib.platforms.all;
license = lib.licenses.mit;
maintainers = [ ];
};
})
|