nixpkgs/pkgs/misc/screensavers/pipes-rs/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

35 lines
859 B
Nix
Raw Normal View History

2021-08-31 09:17:56 +00:00
{ rustPlatform, fetchFromGitHub, lib }:
rustPlatform.buildRustPackage rec {
pname = "pipes-rs";
2024-01-10 18:39:11 +00:00
version = "1.6.3";
2021-08-31 09:17:56 +00:00
src = fetchFromGitHub {
owner = "lhvy";
repo = pname;
rev = "v${version}";
2024-01-10 18:39:11 +00:00
sha256 = "sha256-NrBmkA7sV1RhfG9KEqQNMR5s0l2u66b7KK0toDjQIps=";
2021-08-31 09:17:56 +00:00
};
2024-01-10 18:39:11 +00:00
cargoHash = "sha256-cOLPkmUwNdaexgauULraBVVx6mznI9GXhHV3mSEhL0g=";
2021-08-31 09:17:56 +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";
mainProgram = "pipes-rs";
2021-08-31 09:17:56 +00:00
homepage = "https://github.com/lhvy/pipes-rs";
2023-04-18 02:24:26 +00:00
license = licenses.blueOak100;
2021-08-31 09:17:56 +00:00
maintainers = [ maintainers.vanilla ];
};
}