2021-06-30 15:29:45 +02:00
|
|
|
{ lib, stdenv, fetchFromGitHub, pkg-config, wrapGAppsHook, alsa-lib, gtk3, libpulseaudio }:
|
2012-08-27 20:25:54 +02:00
|
|
|
|
2015-12-15 03:56:28 +01:00
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 14:41:18 +02:00
|
|
|
pname = "praat";
|
2021-08-26 14:12:17 +02:00
|
|
|
version = "6.1.52";
|
2014-03-07 14:59:51 +01:00
|
|
|
|
2021-06-30 15:29:45 +02:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "praat";
|
|
|
|
repo = "praat";
|
|
|
|
rev = "v${version}";
|
2021-08-26 14:12:17 +02:00
|
|
|
sha256 = "sha256-O/PjR2J9IMifOtCIsvo90XeRK/G29HQYt3zrn2lVjxA=";
|
2012-08-27 20:25:54 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
configurePhase = ''
|
2021-06-30 15:29:45 +02:00
|
|
|
cp makefiles/makefile.defs.linux.pulse makefile.defs
|
2012-08-27 20:25:54 +02:00
|
|
|
'';
|
|
|
|
|
|
|
|
installPhase = ''
|
2021-06-30 15:29:45 +02:00
|
|
|
install -Dt $out/bin praat
|
2012-08-27 20:25:54 +02:00
|
|
|
'';
|
|
|
|
|
2021-06-30 15:29:45 +02:00
|
|
|
nativeBuildInputs = [ pkg-config wrapGAppsHook ];
|
|
|
|
buildInputs = [ alsa-lib gtk3 libpulseaudio ];
|
2012-08-27 20:25:54 +02:00
|
|
|
|
2021-06-30 15:29:45 +02:00
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
|
|
|
meta = with lib; {
|
2012-08-27 20:25:54 +02:00
|
|
|
description = "Doing phonetics by computer";
|
2020-10-02 09:58:50 +02:00
|
|
|
homepage = "https://www.fon.hum.uva.nl/praat/";
|
2021-06-30 15:29:45 +02:00
|
|
|
license = licenses.gpl2Plus; # Has some 3rd-party code in it though
|
|
|
|
maintainers = with maintainers; [ orivej ];
|
|
|
|
platforms = platforms.linux;
|
2012-08-27 20:25:54 +02:00
|
|
|
};
|
|
|
|
}
|