Merge pull request #222774 from wegank/pick-colour-picker-fix
pick-colour-picker: drop preDistPhases
This commit is contained in:
commit
350c64e819
1 changed files with 5 additions and 10 deletions
|
@ -22,6 +22,11 @@ buildPythonPackage rec {
|
|||
fetchSubmodules = false;
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
sed "s|sys\.prefix|'\.'|g" -i setup.py
|
||||
sed "s|os.environ.get('SNAP'), \"usr\"|'$out'|g" -i pick/__main__.py
|
||||
'';
|
||||
|
||||
nativeBuildInputs = [
|
||||
gobject-introspection
|
||||
wrapGAppsHook
|
||||
|
@ -37,16 +42,6 @@ buildPythonPackage rec {
|
|||
gtk3
|
||||
];
|
||||
|
||||
preDistPhases = [ "fixupIconPath" ];
|
||||
|
||||
fixupIconPath = ''
|
||||
pickLoc="$out/${python.sitePackages}/pick"
|
||||
shareLoc=$(echo "$out/${python.sitePackages}/nix/store/"*)
|
||||
mv "$shareLoc/share" "$out/share"
|
||||
|
||||
sed "s|os.environ.get('SNAP'), \"usr\"|'$out'|g" -i "$pickLoc/__main__.py"
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "https://kryogenix.org/code/pick/";
|
||||
license = licenses.mit;
|
||||
|
|
Loading…
Reference in a new issue