mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-10-30 06:01:19 +00:00
cdemu: use standard cmake build hook
This commit is contained in:
parent
90bbb562d3
commit
0a3bfb4375
@ -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 = ''
|
||||
|
@ -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 \
|
||||
|
Loading…
Reference in New Issue
Block a user