mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-02 03:43:06 +00:00
34 lines
795 B
Nix
34 lines
795 B
Nix
{ lib
|
|
, fetchFromGitHub
|
|
, rustPlatform
|
|
, bubblewrap
|
|
, makeWrapper
|
|
}:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "pipr";
|
|
version = "0.0.16";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "ElKowar";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
sha256 = "sha256-6jtUNhib6iveuZ7qUKK7AllyMKFpZ8OUUaIieFqseY8=";
|
|
};
|
|
|
|
cargoSha256 = "sha256-SLOiX8z8LuQ9VA/lg0lOhqs85MGs0vmeP74cS6sgghI=";
|
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
|
postFixup = ''
|
|
wrapProgram "$out/bin/pipr" --prefix PATH : ${lib.makeBinPath [ bubblewrap ]}
|
|
'';
|
|
|
|
meta = with 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;
|
|
};
|
|
}
|