2021-07-14 22:03:04 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, pkg-config, wrapGAppsHook, alsa-lib, gtk3, libpulseaudio }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "praat";
|
2021-08-22 07:53:02 +00:00
|
|
|
version = "6.1.51";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-07-14 22:03:04 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "praat";
|
|
|
|
repo = "praat";
|
|
|
|
rev = "v${version}";
|
2021-08-22 07:53:02 +00:00
|
|
|
sha256 = "sha256-4goZRNKNFrfKRbGODJMhN6DyOh8U3+nWRDF1VMT7I1E=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
configurePhase = ''
|
2021-07-14 22:03:04 +00:00
|
|
|
cp makefiles/makefile.defs.linux.pulse makefile.defs
|
2020-04-24 23:36:52 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
installPhase = ''
|
2021-07-14 22:03:04 +00:00
|
|
|
install -Dt $out/bin praat
|
2020-04-24 23:36:52 +00:00
|
|
|
'';
|
|
|
|
|
2021-07-14 22:03:04 +00:00
|
|
|
nativeBuildInputs = [ pkg-config wrapGAppsHook ];
|
|
|
|
buildInputs = [ alsa-lib gtk3 libpulseaudio ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-07-14 22:03:04 +00:00
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Doing phonetics by computer";
|
2020-10-07 09:15:18 +00:00
|
|
|
homepage = "https://www.fon.hum.uva.nl/praat/";
|
2021-07-14 22:03:04 +00:00
|
|
|
license = licenses.gpl2Plus; # Has some 3rd-party code in it though
|
|
|
|
maintainers = with maintainers; [ orivej ];
|
|
|
|
platforms = platforms.linux;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|