Merge pull request #222774 from wegank/pick-colour-picker-fix

pick-colour-picker: drop preDistPhases
This commit is contained in:
Weijia Wang 2023-03-23 23:52:19 +02:00 committed by GitHub
commit 350c64e819
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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;