chromium,chromedriver: 129.0.6668.91 -> 129.0.6668.100
[NixPkgs.git] / pkgs / by-name / ph / phraze / package.nix
blobaba0a4013b406ca58ed7c7fec716ae16ca0e5f0b
2   lib,
3   fetchFromGitHub,
4   testers,
5   nix-update-script,
6   phraze,
7   rustPlatform,
8   installShellFiles,
9 }:
11 rustPlatform.buildRustPackage rec {
12   pname = "phraze";
13   version = "0.3.15";
15   src = fetchFromGitHub {
16     owner = "sts10";
17     repo = "phraze";
18     rev = "v${version}";
19     hash = "sha256-gpdXgR7TK3xJHHXcZdfMZApA3SvtNmCroi/5ChfrQOs=";
20   };
22   doCheck = true;
24   cargoHash = "sha256-tYQ/kcwCNAcgEUmwrrdogLd1AugBnVfqaLX9fjjpOUE=";
26   nativeBuildInputs = [ installShellFiles ];
28   passthru = {
29     updateScript = nix-update-script { };
30     tests = {
31       version = testers.testVersion { package = phraze; };
32     };
33   };
35   postInstall = ''
36     installManPage target/man/phraze.1
38     installShellCompletion --cmd phraze \
39       --bash target/completions/phraze.bash \
40       --fish target/completions/phraze.fish \
41       --zsh target/completions/_phraze
42   '';
44   meta = {
45     description = "Generate random passphrases";
46     homepage = "https://github.com/sts10/phraze";
47     changelog = "https://github.com/sts10/phraze/releases/tag/v${version}";
48     license = lib.licenses.mpl20;
49     maintainers = with lib.maintainers; [
50       x123
51       donovanglover
52     ];
53     mainProgram = "phraze";
54   };