Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / misc / screensavers / pipes-rs / default.nix
blob612f7b925001a724deee6ce51c6a345119598835
1 { rustPlatform, fetchFromGitHub, lib }:
3 rustPlatform.buildRustPackage rec {
4   pname = "pipes-rs";
5   version = "1.6.2";
7   src = fetchFromGitHub {
8     owner = "lhvy";
9     repo = pname;
10     rev = "v${version}";
11     sha256 = "sha256-PUCbirnOPYIqt56IF6UQ7Jd0bJLsVY2pGIn/C95HTrQ=";
12   };
14   cargoHash = "sha256-6OTiciRqZyuX4FaDg131DEaVssUT2OYXdw/cxxJmLso=";
16   doInstallCheck = true;
18   installCheckPhase = ''
19     if [[ "$("$out/bin/${pname}" --version)" == "${pname} ${version}" ]]; then
20       echo '${pname} smoke check passed'
21     else
22       echo '${pname} smoke check failed'
23       return 1
24     fi
25   '';
27   meta = with lib; {
28     description = "An over-engineered rewrite of pipes.sh in Rust";
29     homepage = "https://github.com/lhvy/pipes-rs";
30     license = licenses.blueOak100;
31     maintainers = [ maintainers.vanilla ];
32   };