2021-08-31 11:17:56 +02:00
|
|
|
{ rustPlatform, fetchFromGitHub, lib }:
|
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "pipes-rs";
|
2022-02-12 23:39:48 +01:00
|
|
|
version = "1.4.7";
|
2021-08-31 11:17:56 +02:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "lhvy";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2022-02-12 23:39:48 +01:00
|
|
|
sha256 = "sha256-egjmvvbPmIjccg44F2/TiGrn5HRN5hp8XL0yd0/ctv0=";
|
2021-08-31 11:17:56 +02:00
|
|
|
};
|
|
|
|
|
2022-02-12 23:39:48 +01:00
|
|
|
cargoSha256 = "sha256-i9aR0dGNRF37Hhs9vq0wpdZGIVkX7M1SzbpASR5ve+g=";
|
2021-08-31 11:17:56 +02:00
|
|
|
|
|
|
|
doInstallCheck = true;
|
|
|
|
|
|
|
|
installCheckPhase = ''
|
|
|
|
if [[ "$("$out/bin/${pname}" --version)" == "${pname} ${version}" ]]; then
|
|
|
|
echo '${pname} smoke check passed'
|
|
|
|
else
|
|
|
|
echo '${pname} smoke check failed'
|
|
|
|
return 1
|
|
|
|
fi
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "An over-engineered rewrite of pipes.sh in Rust";
|
|
|
|
homepage = "https://github.com/lhvy/pipes-rs";
|
|
|
|
license = with licenses; [ asl20 mit ];
|
|
|
|
maintainers = [ maintainers.vanilla ];
|
|
|
|
};
|
|
|
|
}
|