1{
2 bash,
3 fetchFromGitHub,
4 lib,
5 stdenv,
6}:
7
8stdenv.mkDerivation (finalAttrs: {
9 pname = "git-my";
10 version = "1.1.2";
11
12 src = fetchFromGitHub {
13 owner = "davidosomething";
14 repo = "git-my";
15 rev = finalAttrs.version;
16 hash = "sha256-GzBNtsCrs2M0UBc1FVE+4yUNLpjDGUfekc/LIvgvUUo=";
17 };
18
19 buildInputs = [ bash ];
20
21 dontBuild = true;
22
23 installPhase = ''
24 runHook preInstall
25
26 install -Dm 755 -t "$out/bin" -- git-my
27
28 runHook postInstall
29 '';
30
31 meta = {
32 description = "List remote branches if they're merged and/or available locally";
33 homepage = "https://github.com/davidosomething/git-my";
34 license = lib.licenses.free;
35 maintainers = [ ];
36 platforms = lib.platforms.all;
37 mainProgram = "git-my";
38 };
39})