159e378cbb
GitOrigin-RevId: c04d5652cfa9742b1d519688f65d1bbccea9eb7e
33 lines
723 B
Nix
33 lines
723 B
Nix
{ lib, stdenv, fetchFromGitHub }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "map";
|
|
version = "0.1.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "soveran";
|
|
repo = "map";
|
|
rev = version;
|
|
sha256 = "sha256-yGzmhZwv1qKy0JNcSzqL996APQO8OGWQ1GBkEkKTOXA=";
|
|
};
|
|
|
|
makeFlags = [ "PREFIX=$(out)" ];
|
|
|
|
postInstall = ''
|
|
mkdir -p "$out/share/doc/map"
|
|
cp README* LICENSE "$out/share/doc/map"
|
|
'';
|
|
|
|
doCheck = true;
|
|
|
|
checkPhase = "./test/tests.sh";
|
|
|
|
meta = with lib; {
|
|
description = "Map lines from stdin to commands";
|
|
mainProgram = "map";
|
|
homepage = "https://github.com/soveran/map";
|
|
license = licenses.bsd2;
|
|
maintainers = with maintainers; [ pogobanane ];
|
|
platforms = platforms.unix;
|
|
};
|
|
}
|