mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-19 04:02:10 +00:00
commit
a18ac4fd35
|
@ -1,33 +1,21 @@
|
|||
{ stdenv, fetchurl, pythonPackages, makeWrapper, gettext, git }:
|
||||
{ stdenv, fetchFromGitHub, pythonPackages, makeWrapper, gettext, git }:
|
||||
|
||||
let
|
||||
inherit (pythonPackages) buildPythonApplication pyqt4 sip pyinotify python mock;
|
||||
in buildPythonApplication rec {
|
||||
name = "git-cola-${version}";
|
||||
version = "2.8";
|
||||
version = "2.10";
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://github.com/git-cola/git-cola/archive/v${version}.tar.gz";
|
||||
sha256 = "19ff7i0h5fznrkm17lp3xkxwkq27whhiil6y6bm16b1wny5hjqlr";
|
||||
src = fetchFromGitHub {
|
||||
owner = "git-cola";
|
||||
repo = "git-cola";
|
||||
rev = "v${version}";
|
||||
sha256 = "067g0yya6718kxagf5qm59zizp0lizca4m3ih85y732i6rqpgwv8";
|
||||
};
|
||||
|
||||
buildInputs = [ git makeWrapper gettext ];
|
||||
buildInputs = [ git gettext ];
|
||||
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;
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
|
|
Loading…
Reference in a new issue