1 { stdenv, callPackage, cmake, pkg-config, glib, libao, intltool, libmirage, coreutils }:
4 inherit (callPackage ./common-drv-attrs.nix {
6 pname = "cdemu-daemon";
7 hash = "sha256-EKh2G6RA9Yq46BpTAqN2s6TpLJb8gwDuEpGiwdGcelc=";
8 }) pname version src meta;
11 inherit pname version src;
13 nativeBuildInputs = [ cmake pkg-config intltool ];
14 buildInputs = [ glib libao libmirage ];
16 mkdir -p $out/share/dbus-1/services
17 cp -R ../service-example $out/share/cdemu
19 $out/share/cdemu/net.sf.cdemu.CDEmuDaemon.service \
20 $out/share/dbus-1/services/net.sf.cdemu.CDEmuDaemon.service \
21 --replace /bin/true ${coreutils}/bin/true
32 homepage = "https://cdemu.sourceforge.io/about/daemon/";
33 mainProgram = "cdemu-daemon";