summary refs log tree commit diff
path: root/pkgs/applications/version-management/git-and-tools/git-my/default.nix
blob: d8ce7a42bb591ed20b4966ffbe7390dafff1abf2 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
{ lib, stdenv, fetchFromGitHub }:

stdenv.mkDerivation rec {
  pname = "git-my";
  version = "1.1.2";

  src = fetchFromGitHub {
    owner = "davidosomething";
    repo = "git-my";
    rev = version;
    sha256 = "0jji5zw25jygj7g4f6f3k0p0s9g37r8iad8pa0s67cxbq2v4sc0v";
  };

  dontBuild = true;

  installPhase = ''
    install -Dm755 -t "$out"/bin ./git-my
  '';

  meta = with lib; {
    description =
      "List remote branches if they're merged and/or available locally";
    homepage = "https://github.com/davidosomething/git-my";
    license = licenses.free;
    maintainers = with maintainers; [ bb010g ];
    platforms = platforms.all;
  };
}