@@ -1,6 +1,4 @@
1−# This package needs the following configuration in configuration.nix:
2−# services.xserver.desktopManager.gnome3.sessionPath = [ pkgs.libgtop pkgs.glib_networking ];
3−{ config, stdenv, fetchFromGitHub, glib, glib_networking, libgtop, pkgs }:
1+{ config, stdenv, substituteAll, fetchFromGitHub, glib, glib_networking, libgtop, pkgs }:
42
53stdenv.mkDerivation rec {
64 name = "gnome-shell-system-monitor-${version}";
@@ -19,7 +17,13 @@ stdenv.mkDerivation rec {
1917 libgtop
2018 ];
2119
22− patches = [ ./remove_nonexisting_mounts.patch ];
20+ patches = [
21+ (substituteAll {
22+ src = ./paths_and_nonexisting_dirs.patch;
23+ gtop_path = "${libgtop}/lib/girepository-1.0";
24+ glib_net_path = "${glib_networking}/lib/girepository-1.0";
25+ })
26+ ];
2327
2428 buildPhase = ''
2529 ${glib.dev}/bin/glib-compile-schemas --targetdir=${uuid}/schemas ${uuid}/schemas