@@ -0,0 +1,33 @@
1+{ lib, stdenv, fetchurl, pkg-config, libsndfile, portaudio, gtk2 }:
2+
3+stdenv.mkDerivation rec {
4+ pname = "gnaural";
5+ version = "20110606";
6+
7+ src = fetchurl {
8+ url = "mirror://sourceforge/${pname}/${pname}_${version}.tar.xz";
9+ hash = "sha256-0a09DUMfHEIGYuIYSBGJalBiIHIgejr/KVDXCFgKBb8=";
10+ };
11+
12+ nativeBuildInputs = [ pkg-config ];
13+ buildInputs = [ gtk2 libsndfile portaudio ];
14+
15+ postInstall = ''
16+ mkdir -p $out/share/applications
17+ substitute \
18+ $out/share/gnome/apps/Multimedia/gnaural.desktop \
19+ $out/share/applications/gnaural.desktop \
20+ --replace \
21+ "/usr/share/gnaural/pixmaps/gnaural-icon.png" \
22+ "$out/share/gnaural/pixmaps/gnaural-icon.png" \
23+
24+ rm -rf $out/share/gnome
25+ '';
26+
27+ meta = with lib; {
28+ description = "Programmable auditory binaural-beat synthesizer";
29+ homepage = "http://gnaural.sourceforge.net/";
30+ maintainers = with maintainers; [ ehmry ];
31+ license = with licenses; [ gpl2Only ];
32+ };
33+}