2023-10-08 22:28:33 +00:00
|
|
|
{ callPackage, glib, libao, intltool, libmirage, coreutils }:
|
2015-02-10 01:27:04 +00:00
|
|
|
let pkg = import ./base.nix {
|
2021-08-30 15:14:48 +00:00
|
|
|
version = "3.2.5";
|
2022-01-22 17:13:29 +00:00
|
|
|
pname = "cdemu-daemon";
|
2021-08-30 15:14:48 +00:00
|
|
|
pkgSha256 = "16g6fv1lxkdmbsy6zh5sj54dvgwvm900fd18aq609yg8jnqm644d";
|
2015-02-10 01:27:04 +00:00
|
|
|
};
|
|
|
|
in callPackage pkg {
|
2022-08-14 04:33:04 +00:00
|
|
|
nativeBuildInputs = [ intltool ];
|
|
|
|
buildInputs = [ glib libao libmirage ];
|
2023-10-08 22:28:33 +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
|
|
|
|
'';
|
2015-02-10 01:27:04 +00:00
|
|
|
}
|