pipes-rs: init at 1.4.4
This commit is contained in:
parent
0cc67d775f
commit
7a750b53e5
33
pkgs/misc/screensavers/pipes-rs/default.nix
Normal file
33
pkgs/misc/screensavers/pipes-rs/default.nix
Normal file
|
@ -0,0 +1,33 @@
|
|||
{ rustPlatform, fetchFromGitHub, lib }:
|
||||
|
||||
rustPlatform.buildRustPackage rec {
|
||||
pname = "pipes-rs";
|
||||
version = "1.4.4";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "lhvy";
|
||||
repo = pname;
|
||||
rev = "v${version}";
|
||||
sha256 = "drqoKkju1EkcWGNnliEah37wVhtU2ddJSOZ5MnCNbuo=";
|
||||
};
|
||||
|
||||
cargoSha256 = "0j6b5697ichw4ly7lsj3nbm0mw6bvjma81nd0fl7v1ra9kbmsysk";
|
||||
|
||||
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 ];
|
||||
};
|
||||
}
|
|
@ -21947,6 +21947,8 @@ with pkgs;
|
|||
|
||||
pipes = callPackage ../misc/screensavers/pipes { };
|
||||
|
||||
pipes-rs = callPackage ../misc/screensavers/pipes-rs { };
|
||||
|
||||
pipework = callPackage ../os-specific/linux/pipework { };
|
||||
|
||||
pktgen = callPackage ../os-specific/linux/pktgen { };
|
||||
|
|
Loading…
Reference in a new issue