2024-05-15 15:35:15 +00:00
|
|
|
{ stdenv, callPackage, cmake, pkg-config, glib, libao, intltool, libmirage, coreutils }:
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
|
|
|
|
inherit (callPackage ./common-drv-attrs.nix {
|
|
|
|
version = "3.2.6";
|
|
|
|
pname = "cdemu-daemon";
|
|
|
|
hash = "sha256-puQE4+91xhRuNjVPZYgN/WO0uO8fVAOdxQWOGQ+FfY8=";
|
|
|
|
}) pname version src meta;
|
|
|
|
|
|
|
|
nativeBuildInputs = [ cmake pkg-config intltool ];
|
2022-09-09 14:08:57 +00:00
|
|
|
buildInputs = [ glib libao libmirage ];
|
2024-05-15 15:35:15 +00:00
|
|
|
postInstall = ''
|
2023-11-16 04:20:00 +00:00
|
|
|
mkdir -p $out/share/dbus-1/services
|
2024-05-15 15:35:15 +00:00
|
|
|
cp -R ../service-example $out/share/cdemu
|
2023-11-16 04:20:00 +00:00
|
|
|
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
|
|
|
}
|