diff options
Diffstat (limited to 'pkgs/applications/emulators/cdemu/gui.nix')
-rw-r--r-- | pkgs/applications/emulators/cdemu/gui.nix | 24 |
1 files changed, 16 insertions, 8 deletions
diff --git a/pkgs/applications/emulators/cdemu/gui.nix b/pkgs/applications/emulators/cdemu/gui.nix index a525783fec32e..b4a886471bb94 100644 --- a/pkgs/applications/emulators/cdemu/gui.nix +++ b/pkgs/applications/emulators/cdemu/gui.nix @@ -1,13 +1,21 @@ -{ callPackage, makeWrapper, gobject-introspection, cmake, wrapGAppsHook3 -, python3Packages, gtk3, glib, libnotify, intltool, gnome, gdk-pixbuf, librsvg }: -callPackage ./base.nix { - version = "3.2.6"; - pname = "gcdemu"; - hash = "sha256-w4vzKoSotL5Cjfr4Cu4YhNSWXJqS+n/vySrwvbhR1zA="; - buildInputs = [ python3Packages.pygobject3 gtk3 glib libnotify gnome.adwaita-icon-theme gdk-pixbuf librsvg ]; - nativeBuildInputs = [ cmake wrapGAppsHook3 intltool ]; +{ stdenv, callPackage, cmake, pkg-config, wrapGAppsHook3 +, python3Packages, libnotify, intltool, gnome, gdk-pixbuf, librsvg }: +stdenv.mkDerivation { + + inherit (callPackage ./common-drv-attrs.nix { + version = "3.2.6"; + pname = "gcdemu"; + hash = "sha256-w4vzKoSotL5Cjfr4Cu4YhNSWXJqS+n/vySrwvbhR1zA="; + }) pname version src meta; + + nativeBuildInputs = [ cmake pkg-config wrapGAppsHook3 intltool ]; + buildInputs = [ python3Packages.pygobject3 libnotify gnome.adwaita-icon-theme gdk-pixbuf librsvg ]; + + dontWrapGApps = true; postFixup = '' wrapProgram $out/bin/gcdemu \ + ''${gappsWrapperArgs[@]} \ --set PYTHONPATH "$PYTHONPATH" ''; + } |