2021-09-18 10:52:07 +00:00
|
|
|
{ rustPlatform, fetchFromGitHub, lib }:
|
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "pipes-rs";
|
2023-04-29 16:46:19 +00:00
|
|
|
version = "1.6.1";
|
2021-09-18 10:52:07 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "lhvy";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2023-04-29 16:46:19 +00:00
|
|
|
sha256 = "sha256-0i5jAqOGq+N5bUM103Gk1Wzgwe7wUQRjJ+T4XqUkuZw=";
|
2021-09-18 10:52:07 +00:00
|
|
|
};
|
|
|
|
|
2023-04-29 16:46:19 +00:00
|
|
|
cargoHash = "sha256-LOU1BCFeX+F2dJdajgLDAtgyyrn6KkvLx3KtF9NkKcY=";
|
2021-09-18 10:52:07 +00: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";
|
2023-04-29 16:46:19 +00:00
|
|
|
license = licenses.blueOak100;
|
2021-09-18 10:52:07 +00:00
|
|
|
maintainers = [ maintainers.vanilla ];
|
|
|
|
};
|
|
|
|
}
|