nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
fork

Configure Feed

Select the types of activity you want to include in your feed.

at master 37 lines 753 B view raw
1{ 2 lib, 3 stdenv, 4 fetchFromGitHub, 5}: 6 7stdenv.mkDerivation (finalAttrs: { 8 pname = "map"; 9 version = "0.1.1"; 10 11 src = fetchFromGitHub { 12 owner = "soveran"; 13 repo = "map"; 14 rev = finalAttrs.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 = { 30 description = "Map lines from stdin to commands"; 31 mainProgram = "map"; 32 homepage = "https://github.com/soveran/map"; 33 license = lib.licenses.bsd2; 34 maintainers = with lib.maintainers; [ pogobanane ]; 35 platforms = lib.platforms.unix; 36 }; 37})