nixpkgs/pkgs/applications/version-management/git-and-tools/stgit/default.nix
R. RyanTM d910d380f6 gitAndTools.stgit: 0.18 -> 0.19
Semi-automatic update generated by
https://github.com/ryantm/nixpkgs-update tools. This update was made
based on information from
https://repology.org/metapackage/stgit/versions
2018-11-17 22:08:58 -08:00

37 lines
831 B
Nix

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