diff options
author | elkowar <5300871+elkowar@users.noreply.github.com> | 2020-08-07 18:52:25 +0200 |
---|---|---|
committer | elkowar <5300871+elkowar@users.noreply.github.com> | 2020-08-18 18:02:13 +0200 |
commit | 416cfc71c0dde320e00dfc166624ac1567827204 (patch) | |
tree | cdcc3b4ac32c672f28f4139074e4895769279263 /pkgs/applications/misc/pipr | |
parent | d1a1a7f559e60a71f1c5ba0c571df6a3c94bac79 (diff) |
pipr: init at 0.0.12
Diffstat (limited to 'pkgs/applications/misc/pipr')
-rw-r--r-- | pkgs/applications/misc/pipr/default.nix | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/pkgs/applications/misc/pipr/default.nix b/pkgs/applications/misc/pipr/default.nix new file mode 100644 index 0000000000000..b5a12f9ce7eef --- /dev/null +++ b/pkgs/applications/misc/pipr/default.nix @@ -0,0 +1,34 @@ +{ stdenv +, fetchFromGitHub +, rustPlatform +, bubblewrap +, makeWrapper +, lib +}: + +rustPlatform.buildRustPackage rec { + pname = "pipr"; + version = "0.0.12"; + + src = fetchFromGitHub { + owner = "ElKowar"; + repo = pname; + rev = "v${version}"; + sha256 = "0l7yvpc59mbzh87lngj6pj8w586fwa07829l5x9mmxnkf6srapmc"; + }; + + cargoSha256 = "1xzc1x5mjvj2jgdhwmjbdbqi8d7ln1ss7akn72d96kmy1wsj1qsa"; + + nativeBuildInputs = [ makeWrapper ]; + postFixup = '' + wrapProgram "$out/bin/pipr" --prefix PATH : ${lib.makeBinPath [ bubblewrap ]} + ''; + + meta = with stdenv.lib; { + description = "A commandline-tool to interactively write shell pipelines"; + homepage = "https://github.com/ElKowar/pipr"; + license = licenses.mit; + maintainers = with maintainers; [ elkowar ]; + platforms = platforms.all; + }; +} |