8ac5e011d6
GitOrigin-RevId: 2c3273caa153ee8eb5786bc8141b85b859e7efd7
36 lines
837 B
Nix
36 lines
837 B
Nix
{ stdenv, fetchFromGitHub, python2, git }:
|
|
|
|
let
|
|
name = "stgit-${version}";
|
|
version = "0.22";
|
|
in
|
|
stdenv.mkDerivation {
|
|
inherit name;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "ctmarinas";
|
|
repo = "stgit";
|
|
rev = "v${version}";
|
|
sha256 = "0xpvs5fa50rrvl2c8naha1nblk5ip2mgg63a9srqqxfx6z8qmrfz";
|
|
};
|
|
|
|
buildInputs = [ python2 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 = with stdenv.lib; {
|
|
description = "A patch manager implemented on top of Git";
|
|
homepage = "http://procode.org/stgit/";
|
|
license = licenses.gpl2;
|
|
maintainers = with maintainers; [ the-kenny ];
|
|
platforms = platforms.unix;
|
|
};
|
|
}
|