mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-01 01:51:24 +00:00
85f96822a0
Rust 1.50.0 incorporated a Cargo change (rust-lang/cargo#8937) in which cargo vendor erroneously changed permissions of vendored crates. This was fixed in Rust 1.51.0 (rust-lang/cargo#9131). Unfortunately, this means that all cargoSha256/cargoHashes produced during the Rust 1.50.0 cycle are potentially broken. This change updates cargoSha256/cargoHash tree-wide. Fixes #121994.
34 lines
797 B
Nix
34 lines
797 B
Nix
{ lib
|
|
, fetchFromGitHub
|
|
, rustPlatform
|
|
, bubblewrap
|
|
, makeWrapper
|
|
}:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "pipr";
|
|
version = "0.0.15";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "ElKowar";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
sha256 = "1pbj198nqi27kavz9bm31a3h7h70by6l00046x09yf9n8qjpp01w";
|
|
};
|
|
|
|
cargoSha256 = "05ryaxi479fxzdcl51r1xlqbiasfzxcxgvl4wnxync8qi8q2yqk0";
|
|
|
|
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;
|
|
};
|
|
}
|