From e91d6046b167e119026e83f9f8a1b9f60d0fcdc1 Mon Sep 17 00:00:00 2001 From: Pogobanane Date: Mon, 6 Jun 2022 12:33:18 +0000 Subject: [PATCH] map: init at 0.1.1 --- pkgs/tools/misc/map/default.nix | 32 ++++++++++++++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 34 insertions(+) create mode 100644 pkgs/tools/misc/map/default.nix diff --git a/pkgs/tools/misc/map/default.nix b/pkgs/tools/misc/map/default.nix new file mode 100644 index 000000000000..b6049904dc62 --- /dev/null +++ b/pkgs/tools/misc/map/default.nix @@ -0,0 +1,32 @@ +{ 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; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 6b7bc90aebfe..bad2fc9d2f40 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -2980,6 +2980,8 @@ with pkgs; clac = callPackage ../tools/misc/clac {}; + map = callPackage ../tools/misc/map {}; + clash = callPackage ../tools/networking/clash { buildGoModule = buildGo118Module; };