Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 stdenv, 4 fetchFromGitHub, 5}: 6 7stdenv.mkDerivation rec { 8 pname = "map"; 9 version = "0.1.1"; 10 11 src = fetchFromGitHub { 12 owner = "soveran"; 13 repo = "map"; 14 rev = version; 15 sha256 = "sha256-yGzmhZwv1qKy0JNcSzqL996APQO8OGWQ1GBkEkKTOXA="; 16 }; 17 18 makeFlags = [ "PREFIX=$(out)" ]; 19 20 postInstall = '' 21 mkdir -p "$out/share/doc/map" 22 cp README* LICENSE "$out/share/doc/map" 23 ''; 24 25 doCheck = true; 26 27 checkPhase = "./test/tests.sh"; 28 29 meta = with lib; { 30 description = "Map lines from stdin to commands"; 31 mainProgram = "map"; 32 homepage = "https://github.com/soveran/map"; 33 license = licenses.bsd2; 34 maintainers = with maintainers; [ pogobanane ]; 35 platforms = platforms.unix; 36 }; 37}