2021-02-05 17:12:51 +00:00
|
|
|
{ lib
|
2020-08-20 17:08:02 +00:00
|
|
|
, fetchFromGitHub
|
|
|
|
, rustPlatform
|
|
|
|
, bubblewrap
|
|
|
|
, makeWrapper
|
|
|
|
}:
|
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "pipr";
|
2020-10-07 09:15:18 +00:00
|
|
|
version = "0.0.15";
|
2020-08-20 17:08:02 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "ElKowar";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2020-10-07 09:15:18 +00:00
|
|
|
sha256 = "1pbj198nqi27kavz9bm31a3h7h70by6l00046x09yf9n8qjpp01w";
|
2020-08-20 17:08:02 +00:00
|
|
|
};
|
|
|
|
|
2021-05-28 09:39:13 +00:00
|
|
|
cargoSha256 = "05ryaxi479fxzdcl51r1xlqbiasfzxcxgvl4wnxync8qi8q2yqk0";
|
2020-08-20 17:08:02 +00:00
|
|
|
|
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
|
|
|
postFixup = ''
|
|
|
|
wrapProgram "$out/bin/pipr" --prefix PATH : ${lib.makeBinPath [ bubblewrap ]}
|
|
|
|
'';
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-08-20 17:08:02 +00: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;
|
|
|
|
};
|
|
|
|
}
|