nixpkgs/pkgs/applications/version-management/git-and-tools/git-cola/default.nix

41 lines
1.1 KiB
Nix
Raw Normal View History

2016-10-17 22:10:44 +02:00
{ stdenv, fetchurl, pythonPackages, makeWrapper, gettext, git }:
2015-03-08 01:39:29 +01:00
2016-10-17 22:10:44 +02:00
let
inherit (pythonPackages) buildPythonApplication pyqt4 sip pyinotify python mock;
in buildPythonApplication rec {
2015-03-08 01:39:29 +01:00
name = "git-cola-${version}";
2016-10-17 22:10:44 +02:00
version = "2.8";
2015-03-08 01:39:29 +01:00
src = fetchurl {
url = "https://github.com/git-cola/git-cola/archive/v${version}.tar.gz";
2016-10-17 22:10:44 +02:00
sha256 = "19ff7i0h5fznrkm17lp3xkxwkq27whhiil6y6bm16b1wny5hjqlr";
2015-03-08 01:39:29 +01:00
};
2016-10-17 22:10:44 +02:00
buildInputs = [ git makeWrapper gettext ];
propagatedBuildInputs = [ pyqt4 sip pyinotify ];
2015-03-08 01:39:29 +01:00
# HACK: wrapPythonPrograms adds 'import sys; sys.argv[0] = "git-cola"', but
# "import __future__" must be placed above that. This removes the argv[0] line.
postFixup = ''
wrapPythonPrograms
sed -i "$out/bin/.git-dag-wrapped" -e '{
/import sys; sys.argv/d
}'
sed -i "$out/bin/.git-cola-wrapped" -e '{
/import sys; sys.argv/d
}'
'';
2016-10-17 22:10:44 +02:00
doCheck = false;
2015-03-08 01:39:29 +01:00
meta = with stdenv.lib; {
homepage = https://github.com/git-cola/git-cola;
description = "A sleek and powerful Git GUI";
license = licenses.gpl2;
platforms = platforms.linux;
2015-03-08 01:39:29 +01:00
maintainers = [ maintainers.bobvanderlinden ];
};
}