1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-25 03:17:13 +00:00
nixpkgs/pkgs/applications/version-management/git-and-tools/stgit/default.nix
2018-10-03 13:54:02 +02:00

37 lines
831 B
Nix

{ stdenv, fetchFromGitHub, python2, git }:
let
name = "stgit-${version}";
version = "0.18";
in
stdenv.mkDerivation {
inherit name;
src = fetchFromGitHub {
owner = "ctmarinas";
repo = "stgit";
rev = "v${version}";
sha256 = "0ydgg744m671nkhg7h4q2z3b9vpbc9914rbc0wcgimqfqsxkxx2y";
};
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;
};
}