nixpkgs-suyu/pkgs/applications/misc/pipr/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

34 lines
795 B
Nix
Raw Normal View History

{ lib
2020-08-07 18:52:25 +02:00
, fetchFromGitHub
, rustPlatform
, bubblewrap
, makeWrapper
}:
rustPlatform.buildRustPackage rec {
pname = "pipr";
2021-11-06 16:22:25 +01:00
version = "0.0.16";
2020-08-07 18:52:25 +02:00
src = fetchFromGitHub {
owner = "ElKowar";
repo = pname;
rev = "v${version}";
2021-11-06 16:22:25 +01:00
sha256 = "sha256-6jtUNhib6iveuZ7qUKK7AllyMKFpZ8OUUaIieFqseY8=";
2020-08-07 18:52:25 +02:00
};
2021-11-06 16:22:25 +01:00
cargoSha256 = "sha256-SLOiX8z8LuQ9VA/lg0lOhqs85MGs0vmeP74cS6sgghI=";
2020-08-07 18:52:25 +02:00
nativeBuildInputs = [ makeWrapper ];
postFixup = ''
wrapProgram "$out/bin/pipr" --prefix PATH : ${lib.makeBinPath [ bubblewrap ]}
'';
meta = with lib; {
2020-08-07 18:52:25 +02:00
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;
};
}