biome: 1.9.2 -> 1.9.3
[NixPkgs.git] / pkgs / applications / emulators / cdemu / daemon.nix
blob0100ea5321d639c8e80f95e7d6a4a3e1b9783226
1 { stdenv, callPackage, cmake, pkg-config, glib, libao, intltool, libmirage, coreutils }:
3 let
4   inherit (callPackage ./common-drv-attrs.nix {
5     version = "3.2.7";
6     pname = "cdemu-daemon";
7     hash = "sha256-EKh2G6RA9Yq46BpTAqN2s6TpLJb8gwDuEpGiwdGcelc=";
8   }) pname version src meta;
9 in
10 stdenv.mkDerivation {
11   inherit pname version src;
13   nativeBuildInputs = [ cmake pkg-config intltool ];
14   buildInputs = [ glib libao libmirage ];
15   postInstall = ''
16     mkdir -p $out/share/dbus-1/services
17     cp -R ../service-example $out/share/cdemu
18     substitute \
19       $out/share/cdemu/net.sf.cdemu.CDEmuDaemon.service \
20       $out/share/dbus-1/services/net.sf.cdemu.CDEmuDaemon.service \
21       --replace /bin/true ${coreutils}/bin/true
22   '';
24   meta = {
25     inherit (meta)
26       description
27       license
28       longDescription
29       maintainers
30       platforms
31       ;
32     homepage = "https://cdemu.sourceforge.io/about/daemon/";
33     mainProgram = "cdemu-daemon";
34   };