2023-11-16 04:20:00 +00:00
|
|
|
{ callPackage, glib, libao, intltool, libmirage, coreutils }:
|
2020-04-24 23:36:52 +00:00
|
|
|
let pkg = import ./base.nix {
|
2021-09-18 10:52:07 +00:00
|
|
|
version = "3.2.5";
|
2022-01-25 03:21:06 +00:00
|
|
|
pname = "cdemu-daemon";
|
2021-09-18 10:52:07 +00:00
|
|
|
pkgSha256 = "16g6fv1lxkdmbsy6zh5sj54dvgwvm900fd18aq609yg8jnqm644d";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
in callPackage pkg {
|
2022-09-09 14:08:57 +00:00
|
|
|
nativeBuildInputs = [ intltool ];
|
|
|
|
buildInputs = [ glib libao libmirage ];
|
2023-11-16 04:20:00 +00:00
|
|
|
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
|
|
|
|
'';
|
2020-04-24 23:36:52 +00:00
|
|
|
}
|