flake-update-20260201
1# https://github.com/chmouel/chmouzies/tree/master/kubernetes
2{
3 stdenv,
4 lib,
5 fetchFromGitLab,
6 python313,
7 installShellFiles,
8}:
9
10stdenv.mkDerivation {
11 pname = "chmouzies-git";
12 version = "0-unstable-2025-09-30";
13
14 src = fetchFromGitLab {
15 owner = "chmouel";
16 repo = "chmouzies";
17 rev = "10773a982503829e5f276a3bd8fd526dab4f92d3";
18 hash = "sha256-Lr4tYzgEhvVhJhSRDGuUlrp7XP2iUNX7H2nizlEko3Q=";
19 };
20
21 propagatedBuildInputs = [ python313 ];
22 nativeBuildInputs = [ installShellFiles ];
23
24 installPhase =
25 let
26 binaries = [
27 "gh-prcheck"
28 "gh-actionfollow"
29 "gh-clone"
30 "gh-issuef"
31 "gh-issuecreate"
32 "gh-completer"
33 "git-branch-cleanup"
34 "git-remote-branch"
35 "git-wt-delete"
36 "git-wt-create"
37 ];
38 in
39 ''
40 runHook preInstall
41
42 mkdir -p $out/bin
43 ${lib.concatMapStringsSep "\n" (b: "cp $src/git/${b} $out/bin/") binaries}
44
45 installShellCompletion --cmd gh-issuecreate --zsh $src/git/_gh-issuecreate
46 installShellCompletion --cmd gh-clone --zsh $src/git/_gh-clone
47
48 runHook postInstall
49 '';
50
51 meta = with lib; {
52 description = "Chmouel's git-related helper scripts and GitHub CLI extensions";
53 homepage = "https://gitlab.com/chmouel/chmouzies";
54 platforms = platforms.unix;
55 };
56}