3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/misc/screensavers/pipes-rs/default.nix

34 lines
840 B
Nix
Raw Normal View History

2021-08-31 10:17:56 +01:00
{ rustPlatform, fetchFromGitHub, lib }:
rustPlatform.buildRustPackage rec {
pname = "pipes-rs";
2021-11-03 20:14:13 +00:00
version = "1.4.6";
2021-08-31 10:17:56 +01:00
src = fetchFromGitHub {
owner = "lhvy";
repo = pname;
rev = "v${version}";
2021-11-03 20:14:13 +00:00
sha256 = "sha256-HtwUYYQqldEtE9VkQAJscW8jp/u8Cb4/G5d2uqanOjI=";
2021-08-31 10:17:56 +01:00
};
2021-11-03 20:14:13 +00:00
cargoSha256 = "sha256-o/aPB0jfZfg2sDkgCBlLlCK3gbjjHZeiG8OxRXKXJyY=";
2021-08-31 10:17:56 +01: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 ];
};
}