Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 stdenv, 4 fetchurl, 5}: 6 7stdenv.mkDerivation { 8 pname = "micro-httpd"; 9 version = "20140814"; 10 11 src = fetchurl { 12 url = "https://acme.com/software/micro_httpd/micro_httpd_14Aug2014.tar.gz"; 13 sha256 = "0mlm24bi31s0s8w55i0sysv2nc1n2x4cfp6dm47slz49h2fz24rk"; 14 }; 15 16 preBuild = '' 17 makeFlagsArray=(BINDIR="$out/bin" MANDIR="$out/share/man/man8") 18 mkdir -p $out/bin 19 mkdir -p $out/share/man/man8 20 ''; 21 22 meta = with lib; { 23 homepage = "http://acme.com/software/micro_httpd/"; 24 description = "Really small HTTP server"; 25 license = licenses.bsd2; 26 platforms = platforms.unix; 27 maintainers = [ ]; 28 mainProgram = "micro_httpd"; 29 }; 30}