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