chromium,chromedriver: 129.0.6668.91 -> 129.0.6668.100
[NixPkgs.git] / pkgs / by-name / ht / httm / package.nix
blob109744ae92cac9a771acb14d2d764537dc0a0e6f
2   lib,
3   rustPlatform,
4   fetchFromGitHub,
5   installShellFiles,
6 }:
8 rustPlatform.buildRustPackage rec {
9   pname = "httm";
10   version = "0.43.2";
12   src = fetchFromGitHub {
13     owner = "kimono-koans";
14     repo = pname;
15     rev = version;
16     hash = "sha256-8oG40pxhWd2MRxUSzZ3lgcsC9M1W5yBUZ0t5tO3B86U=";
17   };
19   cargoHash = "sha256-KKvpI3U6/cByP5M2ZiNtVrYyh2Nqe9cee2ObKqRBEyg=";
21   nativeBuildInputs = [ installShellFiles ];
23   postPatch = ''
24     chmod +x scripts/*.bash
25     patchShebangs scripts/*.bash
26   '';
28   postInstall = ''
29     installManPage httm.1
31     installShellCompletion --cmd httm \
32       --zsh scripts/httm-key-bindings.zsh
34     for script in scripts/*.bash; do
35       install -Dm755 "$script" "$out/bin/$(basename "$script" .bash)"
36     done
38     install -Dm644 README.md $out/share/doc/README.md
39   '';
41   meta = with lib; {
42     description = "Interactive, file-level Time Machine-like tool for ZFS/btrfs";
43     homepage = "https://github.com/kimono-koans/httm";
44     changelog = "https://github.com/kimono-koans/httm/releases/tag/${version}";
45     license = licenses.mpl20;
46     maintainers = with maintainers; [ wyndon ];
47     mainProgram = "httm";
48   };