Skip to content

Commit

Permalink
safeeyes: use the installed share files
Browse files Browse the repository at this point in the history
squashed from NixOS#269445
  • Loading branch information
linsui authored Dec 6, 2023
1 parent ad79552 commit 745ee32
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions pkgs/applications/misc/safeeyes/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,10 @@ buildPythonApplication rec {
hash = "sha256-tvsBTf6+zKBzB5aL+LUcEvE4jmVHnnoY0L4xoKMJ0vM=";
};

postPatch = ''
substituteInPlace setup.py --replace "root_dir = sys.prefix" "root_dir = '/'"
'';

nativeBuildInputs = [
wrapGAppsHook
gobject-introspection
Expand All @@ -49,9 +53,7 @@ buildPythonApplication rec {
dontWrapGApps = true;

postInstall = ''
mkdir -p $out/share/applications
cp -r safeeyes/platform/icons $out/share/icons/
cp safeeyes/platform/io.github.slgobinath.SafeEyes.desktop $out/share/applications/io.github.slgobinath.SafeEyes.desktop
mv $out/lib/python*/site-packages/share $out/share
'';

preFixup = ''
Expand Down

0 comments on commit 745ee32

Please sign in to comment.