Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 stdenv, 4 fetchurl, 5}: 6 7stdenv.mkDerivation rec { 8 pname = "libffcall"; 9 version = "2.5"; 10 11 src = fetchurl { 12 url = "mirror://gnu/libffcall/libffcall-${version}.tar.gz"; 13 sha256 = "sha256-f0IglrQEmLE4kJOVWCXxQbtn7WAUJJ2IQAlGPceEaHk="; 14 }; 15 16 enableParallelBuilding = false; 17 18 outputs = [ 19 "dev" 20 "out" 21 "doc" 22 "man" 23 ]; 24 25 postInstall = '' 26 mkdir -p $doc/share/doc/libffcall 27 mv $out/share/html $doc/share/doc/libffcall 28 rm -rf $out/share 29 ''; 30 31 meta = with lib; { 32 description = "Foreign function call library"; 33 homepage = "https://www.gnu.org/software/libffcall/"; 34 license = licenses.gpl2Plus; 35 platforms = platforms.unix; 36 }; 37}