about summary refs log tree commit diff
path: root/pkgs/applications/version-management/git-and-tools/stgit/default.nix
blob: f6966f92eb2f3512415132e5b0aad0ddb1f78b0c (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
30
31
32
33
34
{ stdenv, fetchurl, python, git }:

let
  name = "stgit-0.17.1";
in
stdenv.mkDerivation {
  inherit name;

  src = fetchurl {
    url = "http://download.gna.org/stgit/${name}.tar.gz";
    sha256 = "1pka0ns9x0kabn036zsf0mwmwiynckhnva51kgxsch9fqah6acyl";
  };

  buildInputs = [ python git ];

  makeFlags = "prefix=$$out";

  postInstall = ''
    mkdir -p "$out/etc/bash_completion.d/"
    ln -s ../../share/stgit/completion/stgit-completion.bash "$out/etc/bash_completion.d/"
  '';

  doCheck = false;
  checkTarget = "test";

  meta = {
    homepage = "http://procode.org/stgit/";
    description = "A patch manager implemented on top of Git";
    license = "GPL";

    maintainers = with stdenv.lib.maintainers; [ simons the-kenny ];
    platforms = stdenv.lib.platforms.unix;
  };
}