Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib, stdenv, fetchzip }: 2 3stdenv.mkDerivation rec { 4 version = "2.2.0"; 5 pname = "half"; 6 7 src = fetchzip { 8 url = "mirror://sourceforge/half/${version}/half-${version}.zip"; 9 sha256 = "sha256-ZdGgBMZylFgkvs/XVBnvgBY2EYSHRLY3S4YwXjshpOY="; 10 stripRoot = false; 11 }; 12 13 buildCommand = '' 14 mkdir -p $out/include $out/share/doc 15 cp $src/include/half.hpp $out/include/ 16 cp $src/{ChangeLog,LICENSE,README}.txt $out/share/doc/ 17 ''; 18 19 meta = with lib; { 20 description = "C++ library for half precision floating point arithmetics"; 21 platforms = platforms.all; 22 license = licenses.mit; 23 maintainers = [ ]; 24 }; 25}