summary refs log tree commit diff
path: root/pkgs/applications/audio/praat/default.nix
blob: 03ba33b4834a87aea749a96de154a4c79be92206 (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
{ stdenv, fetchurl, alsaLib, gtk, pkgconfig }:

let version = "5417"; in
stdenv.mkDerivation {
  name = "praat-${version}";

  src = fetchurl {
    url = "http://www.fon.hum.uva.nl/praat/praat${version}_sources.tar.gz";
    sha256 = "1bspl963pb1s6k3cd9p3g5j518pxg6hkrann945lqsrvbzaa20kl";
  };

  configurePhase = ''
    cp makefiles/makefile.defs.linux.alsa makefile.defs
  '';

  installPhase = ''
    mkdir -p $out/bin
    cp praat $out/bin
  '';

  buildInputs = [ alsaLib gtk pkgconfig ];

  meta = {
    description = "Doing phonetics by computer";
    homepage = http://www.fon.hum.uva.nl/praat/;
    license = stdenv.lib.licenses.gpl2Plus; # Has some 3rd-party code in it though
    platforms = stdenv.lib.platforms.linux;
  };
}