diff options
author | Herwig Hochleitner <herwig@bendlas.net> | 2023-10-27 14:46:57 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-10-27 14:46:57 +0200 |
commit | a5e03844dc48505e76b7add3d1119a401a150587 (patch) | |
tree | 958035cccd39aefe83a6b899e0c2c286cfa540cb /pkgs/applications/emulators | |
parent | 13687487b97f09360a7de00bbda619973487572a (diff) | |
parent | 13364f124a83832edc4abb259f03e5d264f70a68 (diff) |
Merge pull request #260091 from bendlas/fix-cdemu-service
cdemu: fix service setup
Diffstat (limited to 'pkgs/applications/emulators')
-rw-r--r-- | pkgs/applications/emulators/cdemu/daemon.nix | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/pkgs/applications/emulators/cdemu/daemon.nix b/pkgs/applications/emulators/cdemu/daemon.nix index 5d376955ea66d..359b2f26a5735 100644 --- a/pkgs/applications/emulators/cdemu/daemon.nix +++ b/pkgs/applications/emulators/cdemu/daemon.nix @@ -1,4 +1,4 @@ -{ callPackage, glib, libao, intltool, libmirage }: +{ callPackage, glib, libao, intltool, libmirage, coreutils }: let pkg = import ./base.nix { version = "3.2.5"; pname = "cdemu-daemon"; @@ -7,4 +7,12 @@ let pkg = import ./base.nix { in callPackage pkg { nativeBuildInputs = [ intltool ]; buildInputs = [ glib libao libmirage ]; + drvParams.postInstall = '' + mkdir -p $out/share/dbus-1/services + cp -R ../$pname-$version/service-example $out/share/cdemu + substitute \ + $out/share/cdemu/net.sf.cdemu.CDEmuDaemon.service \ + $out/share/dbus-1/services/net.sf.cdemu.CDEmuDaemon.service \ + --replace /bin/true ${coreutils}/bin/true + ''; } |