1 { lib, stdenv, fetchurl, pkg-config, libsndfile, portaudio, gtk2 }:
3 stdenv.mkDerivation rec {
8 url = "mirror://sourceforge/${pname}/${pname}_${version}.tar.xz";
9 hash = "sha256-0a09DUMfHEIGYuIYSBGJalBiIHIgejr/KVDXCFgKBb8=";
12 nativeBuildInputs = [ pkg-config ];
13 buildInputs = [ gtk2 libsndfile portaudio ];
15 # Workaround build failure on -fno-common toolchains:
16 # ld: src/net/../gnauralnet.h:233: multiple definition of `GN_ScheduleFingerprint';
17 # src/net/../../src/gnauralnet.h:233: first defined here
18 env.NIX_CFLAGS_COMPILE = "-fcommon";
21 mkdir -p $out/share/applications
23 $out/share/gnome/apps/Multimedia/gnaural.desktop \
24 $out/share/applications/gnaural.desktop \
26 "/usr/share/gnaural/pixmaps/gnaural-icon.png" \
27 "$out/share/gnaural/pixmaps/gnaural-icon.png" \
29 rm -rf $out/share/gnome
33 description = "Programmable auditory binaural-beat synthesizer";
34 homepage = "https://gnaural.sourceforge.net/";
35 maintainers = with maintainers; [ ehmry ];
36 license = with licenses; [ gpl2Only ];
37 mainProgram = "gnaural";