parent
affce1e246
commit
6ee0d284c1
|
@ -1,33 +1,21 @@
|
||||||
{ stdenv, fetchurl, pythonPackages, makeWrapper, gettext, git }:
|
{ stdenv, fetchFromGitHub, pythonPackages, makeWrapper, gettext, git }:
|
||||||
|
|
||||||
let
|
let
|
||||||
inherit (pythonPackages) buildPythonApplication pyqt4 sip pyinotify python mock;
|
inherit (pythonPackages) buildPythonApplication pyqt4 sip pyinotify python mock;
|
||||||
in buildPythonApplication rec {
|
in buildPythonApplication rec {
|
||||||
name = "git-cola-${version}";
|
name = "git-cola-${version}";
|
||||||
version = "2.8";
|
version = "2.10";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchFromGitHub {
|
||||||
url = "https://github.com/git-cola/git-cola/archive/v${version}.tar.gz";
|
owner = "git-cola";
|
||||||
sha256 = "19ff7i0h5fznrkm17lp3xkxwkq27whhiil6y6bm16b1wny5hjqlr";
|
repo = "git-cola";
|
||||||
|
rev = "v${version}";
|
||||||
|
sha256 = "067g0yya6718kxagf5qm59zizp0lizca4m3ih85y732i6rqpgwv8";
|
||||||
};
|
};
|
||||||
|
|
||||||
buildInputs = [ git makeWrapper gettext ];
|
buildInputs = [ git gettext ];
|
||||||
propagatedBuildInputs = [ pyqt4 sip pyinotify ];
|
propagatedBuildInputs = [ pyqt4 sip pyinotify ];
|
||||||
|
|
||||||
# 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
|
|
||||||
}'
|
|
||||||
'';
|
|
||||||
|
|
||||||
doCheck = false;
|
doCheck = false;
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
|
|
Loading…
Reference in New Issue