about summary refs log tree commit diff
path: root/nixpkgs/pkgs/applications/audio/gnaural/default.nix
blob: 10c199d94b69834d4038837389b98fd4cfd33962 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
{ lib, stdenv, fetchurl, pkg-config, libsndfile, portaudio, gtk2 }:

stdenv.mkDerivation rec {
  pname = "gnaural";
  version = "20110606";

  src = fetchurl {
    url = "mirror://sourceforge/${pname}/${pname}_${version}.tar.xz";
    hash = "sha256-0a09DUMfHEIGYuIYSBGJalBiIHIgejr/KVDXCFgKBb8=";
  };

  nativeBuildInputs = [ pkg-config ];
  buildInputs = [ gtk2 libsndfile portaudio ];

  postInstall = ''
    mkdir -p $out/share/applications
    substitute \
      $out/share/gnome/apps/Multimedia/gnaural.desktop \
      $out/share/applications/gnaural.desktop \
      --replace \
        "/usr/share/gnaural/pixmaps/gnaural-icon.png" \
        "$out/share/gnaural/pixmaps/gnaural-icon.png" \

    rm -rf $out/share/gnome
  '';

  meta = with lib; {
    description = "Programmable auditory binaural-beat synthesizer";
    homepage = "http://gnaural.sourceforge.net/";
    maintainers = with maintainers; [ ehmry ];
    license = with licenses; [ gpl2Only ];
  };
}