Commit 3eba6e01 authored by Weijia Wang's avatar Weijia Wang
Browse files

pick-colour-picker: drop preDistPhases

parent e7741567
Loading
Loading
Loading
Loading
+5 −10
Original line number Diff line number Diff line
@@ -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;