cdemu: use standard cmake build hook

This commit is contained in:
Herwig Hochleitner 2024-05-15 11:41:09 +02:00
parent 90bbb562d3
commit 0a3bfb4375
2 changed files with 1 additions and 9 deletions

View File

@ -11,14 +11,6 @@ stdenv.mkDerivation ( {
inherit hash;
};
nativeBuildInputs = nativeBuildInputs ++ [ pkg-config cmake ];
setSourceRoot = ''
mkdir build
cd build
sourceRoot="`pwd`"
'';
configurePhase = ''
cmake ../${pname}-${version} -DCMAKE_INSTALL_PREFIX=$out -DCMAKE_BUILD_TYPE=Release -DCMAKE_SKIP_RPATH=ON
'';
meta = with lib; {
description = "A suite of tools for emulating optical drives and discs";
longDescription = ''

View File

@ -7,7 +7,7 @@ callPackage ./base.nix {
buildInputs = [ glib libao libmirage ];
extraDrvParams.postInstall = ''
mkdir -p $out/share/dbus-1/services
cp -R ../$pname-$version/service-example $out/share/cdemu
cp -R ../service-example $out/share/cdemu
substitute \
$out/share/cdemu/net.sf.cdemu.CDEmuDaemon.service \
$out/share/dbus-1/services/net.sf.cdemu.CDEmuDaemon.service \