mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-16 10:43:27 +00:00
a0718341e6
github account deleted
26 lines
653 B
Nix
26 lines
653 B
Nix
{ lib, stdenv, fetchzip }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
version = "2.2.0";
|
|
pname = "half";
|
|
|
|
src = fetchzip {
|
|
url = "mirror://sourceforge/half/${version}/half-${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 = with lib; {
|
|
description = "C++ library for half precision floating point arithmetics";
|
|
platforms = platforms.all;
|
|
license = licenses.mit;
|
|
maintainers = [ ];
|
|
};
|
|
}
|