tortoisehg: 3.6 -> 3.7.1, fixes package
fixes #13507 On June 8 (e8655ee) tortoisehg changed the way it computes the `/usr/share` directory in a way that invalidated the assumptions behind the use of substituteInPlace in postUnpack.
This commit is contained in:
parent
9c484f29ce
commit
a4ce0e233b
@ -1,25 +1,24 @@
|
|||||||
{ pkgs, lib, mercurial, pyPackages ? pkgs.python27Packages }:
|
{lib, fetchurl, mercurial, pythonPackages}:
|
||||||
|
|
||||||
pkgs.buildPythonApplication rec {
|
pythonPackages.buildPythonApplication rec {
|
||||||
name = "tortoisehg-${version}";
|
name = "tortoisehg-${version}";
|
||||||
version = "3.6";
|
version = "3.7.1";
|
||||||
namePrefix = "";
|
namePrefix = "";
|
||||||
|
|
||||||
src = pkgs.fetchurl {
|
src = fetchurl {
|
||||||
url = "https://bitbucket.org/tortoisehg/targz/downloads/${name}.tar.gz";
|
url = "https://bitbucket.org/tortoisehg/targz/downloads/${name}.tar.gz";
|
||||||
sha256 = "ec43d13f029bb23a12129d2a2c3b3b4daf3d8121cbb5c9c23e4872f7b0b75ad8";
|
sha256 = "1ycf8knwk1rs99s5caq611sk4c4nzwyzq8g35hw5kwj15b6dl4k6";
|
||||||
};
|
};
|
||||||
|
|
||||||
pythonPath = [ pkgs.pyqt4 mercurial ]
|
pythonPath = with pythonPackages; [ pyqt4 mercurial qscintilla iniparse ];
|
||||||
++ (with pyPackages; [qscintilla iniparse]);
|
|
||||||
|
|
||||||
propagatedBuildInputs = with pyPackages; [ qscintilla iniparse ];
|
propagatedBuildInputs = with pythonPackages; [ qscintilla iniparse ];
|
||||||
|
|
||||||
doCheck = false;
|
doCheck = false;
|
||||||
|
|
||||||
postUnpack = ''
|
postUnpack = ''
|
||||||
substituteInPlace $sourceRoot/setup.py \
|
substituteInPlace $sourceRoot/setup.py \
|
||||||
--replace "/usr/share/" "$out/share/"
|
--replace "sharedir = os.path.join(installcmd.install_data[rootlen:], 'share')" "sharedir = '$out/share/'"
|
||||||
'';
|
'';
|
||||||
|
|
||||||
postInstall = ''
|
postInstall = ''
|
||||||
|
Loading…
x
Reference in New Issue
Block a user