1{
2 lib,
3 fetchFromGitHub,
4 rustPlatform,
5 testers,
6 git-stack,
7 stdenv,
8 zlib,
9}:
10rustPlatform.buildRustPackage rec {
11 pname = "git-stack";
12 version = "0.10.20";
13
14 src = fetchFromGitHub {
15 owner = "gitext-rs";
16 repo = "git-stack";
17 rev = "v${version}";
18 hash = "sha256-PULWvJ1sfLbTVOICl/ENPG76tOw+98Whgtc9obO+W6w=";
19 };
20
21 cargoHash = "sha256-n+kU6OLwsAjUVc1LPZpcn54FJroU09LNWmrar2oNyXI=";
22
23 buildInputs =
24 [ ]
25 ++ lib.optionals stdenv.hostPlatform.isDarwin [
26 zlib
27 ];
28
29 # Many tests try to access the file system.
30 doCheck = false;
31
32 passthru.tests.version = testers.testVersion {
33 package = git-stack;
34 };
35
36 meta = {
37 description = "Stacked branch management for Git";
38 homepage = "https://github.com/gitext-rs/git-stack";
39 changelog = "https://github.com/gitext-rs/git-stack/releases/tag/v${version}";
40 license = lib.licenses.asl20;
41 maintainers = with lib.maintainers; [ stehessel ];
42 mainProgram = "git-stack";
43 };
44}