aboutsummaryrefslogtreecommitdiff
path: root/.config/nixpkgs/packages/gnaural/default.nix
blob: 43247366f96e5861211e2a278f9934d6fcf8b561 (plain)
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
{ stdenv, fetchurl, portaudio, libsndfile, pkg-config, gtk2, gcc48 }:

stdenv.mkDerivation rec {

  pname = "gnaural";
  version = "20110606";

  src = fetchurl {
    url = "https://iweb.dl.sourceforge.net/project/gnaural/Gnaural/gnaural_${version}.tar.xz";
    sha256 = "1gq519c0imsh57zklyi0f8h64l3ai48lh672c834470z8c6kvbfi";
  };

  patches = [
    (fetchurl {
      name = "gnaural.patch";
      url = "https://aur.archlinux.org/cgit/aur.git/plain/gnaural.patch?h=gnaural";
      sha256 = "15bplxcvjml8cz7pi2fwb444fpp7ypsh279642v8s9hgl3i3jvsz";
    })
  ];

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

  meta = with stdenv.lib; {
    license = licenses.gpl2;
    platforms = platforms.linux;
    homepage = "http://gnaural.sourceforge.net/";
    description = "Auditory binaural-beat generator";
  };
}