diff options
author | Vanilla <neko@hydev.org> | 2021-08-31 17:17:56 +0800 |
---|---|---|
committer | Vanilla <neko@hydev.org> | 2021-08-31 17:17:56 +0800 |
commit | 7a750b53e53804b971d9b197473b2dc460e28a47 (patch) | |
tree | 6650187b008404081f400e88a3e381e138e08a4e /pkgs/misc/screensavers | |
parent | 0cc67d775fba1af56eea9420c81e524f94376564 (diff) |
pipes-rs: init at 1.4.4
Diffstat (limited to 'pkgs/misc/screensavers')
-rw-r--r-- | pkgs/misc/screensavers/pipes-rs/default.nix | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/pkgs/misc/screensavers/pipes-rs/default.nix b/pkgs/misc/screensavers/pipes-rs/default.nix new file mode 100644 index 0000000000000..5e55f13c2b436 --- /dev/null +++ b/pkgs/misc/screensavers/pipes-rs/default.nix @@ -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 ]; + }; +} |