summary refs log tree commit diff
path: root/pkgs/desktops/gnome-3/core/gnome-shell
diff options
context:
space:
mode:
authorJan Tojnar <jtojnar@gmail.com>2017-11-08 22:00:30 +0100
committerJan Tojnar <jtojnar@gmail.com>2017-11-26 03:10:54 +0100
commit4772fc10b5408dcf4038ecbaa03e6fb764280eca (patch)
tree8daa1bf7befb4a4ccff179ac53eaeaee4ff8304a /pkgs/desktops/gnome-3/core/gnome-shell
parentc9fe6567ed54339911caaa1721296e01c25df099 (diff)
downloadnixpkgs-4772fc10b5408dcf4038ecbaa03e6fb764280eca.tar
nixpkgs-4772fc10b5408dcf4038ecbaa03e6fb764280eca.tar.gz
nixpkgs-4772fc10b5408dcf4038ecbaa03e6fb764280eca.tar.bz2
nixpkgs-4772fc10b5408dcf4038ecbaa03e6fb764280eca.tar.lz
nixpkgs-4772fc10b5408dcf4038ecbaa03e6fb764280eca.tar.xz
nixpkgs-4772fc10b5408dcf4038ecbaa03e6fb764280eca.tar.zst
nixpkgs-4772fc10b5408dcf4038ecbaa03e6fb764280eca.zip
gnome3.gnome_shell: reorganize source substition
Diffstat (limited to 'pkgs/desktops/gnome-3/core/gnome-shell')
-rw-r--r--pkgs/desktops/gnome-3/core/gnome-shell/default.nix18
1 files changed, 5 insertions, 13 deletions
diff --git a/pkgs/desktops/gnome-3/core/gnome-shell/default.nix b/pkgs/desktops/gnome-3/core/gnome-shell/default.nix
index 0a94c52d9e3..c62431dfdab 100644
--- a/pkgs/desktops/gnome-3/core/gnome-shell/default.nix
+++ b/pkgs/desktops/gnome-3/core/gnome-shell/default.nix
@@ -44,20 +44,12 @@ in stdenv.mkDerivation rec {
     ./fix-paths.patch
   ];
 
-  preBuild = ''
-    # meson setup-hook changes the directory so the files are located one level up
-    patchShebangs ../src/data-to-c.pl
+  postPatch = ''
+    patchShebangs src/data-to-c.pl
 
-    substituteInPlace ../src/gnome-shell-extension-tool.in --replace "@PYTHON@" "${pythonEnv}/bin/python"
-    substituteInPlace ../src/gnome-shell-perf-tool.in --replace "@PYTHON@" "${pythonEnv}/bin/python"
-  '';
-
-  preFixup = with gnome3; ''
-    gappsWrapperArgs+=(
-      --prefix PATH : "${unzip}/bin"
-    )
-
-    echo "${unzip}/bin" > $out/${passthru.mozillaPlugin}/extra-bin-path
+    substituteInPlace src/gnome-shell-extension-tool.in --replace "@PYTHON@" "${pythonEnv}/bin/python"
+    substituteInPlace src/gnome-shell-perf-tool.in --replace "@PYTHON@" "${pythonEnv}/bin/python"
+    substituteInPlace js/ui/extensionDownloader.js --replace "unzip" "${unzip}/bin/unzip"
   '';
 
   postInstall = ''