3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/applications/misc/pipr/default.nix

35 lines
813 B
Nix
Raw Normal View History

2020-08-07 17:52:25 +01:00
{ stdenv
, fetchFromGitHub
, rustPlatform
, bubblewrap
, makeWrapper
, lib
}:
rustPlatform.buildRustPackage rec {
pname = "pipr";
2020-10-01 19:04:06 +01:00
version = "0.0.15";
2020-08-07 17:52:25 +01:00
src = fetchFromGitHub {
owner = "ElKowar";
repo = pname;
rev = "v${version}";
2020-10-01 19:04:06 +01:00
sha256 = "1pbj198nqi27kavz9bm31a3h7h70by6l00046x09yf9n8qjpp01w";
2020-08-07 17:52:25 +01:00
};
2020-10-01 19:04:06 +01:00
cargoSha256 = "1dcrafpf252dpjvimaibb93082nymb26wwbvr34zd6j7z285vach";
2020-08-07 17:52:25 +01:00
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;
};
}