depot/third_party/nixpkgs/pkgs/tools/misc/map/default.nix
Default email 3a4df29a92 Project import generated by Copybara.
GitOrigin-RevId: 3d7435c638baffaa826b85459df0fff47f12317d
2022-06-16 19:23:12 +02:00

32 lines
708 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/${pname}"
cp README* LICENSE "$out/share/doc/${pname}"
'';
doCheck = true;
checkPhase = "./test/tests.sh";
meta = with lib; {
description = "Map lines from stdin to commands";
homepage = "https://github.com/soveran/map";
license = licenses.bsd2;
maintainers = with maintainers; [ pogobanane ];
platforms = platforms.unix;
};
}