2023-08-10 07:59:29 +00:00
|
|
|
{
|
|
|
|
alsa-lib
|
|
|
|
, fetchFromGitHub
|
|
|
|
, gtk3
|
|
|
|
, lib
|
|
|
|
, libpulseaudio
|
|
|
|
, pkg-config
|
|
|
|
, stdenv
|
|
|
|
, wrapGAppsHook
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "praat";
|
2023-11-16 04:20:00 +00:00
|
|
|
version = "6.3.20";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-07-14 22:03:04 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "praat";
|
|
|
|
repo = "praat";
|
2023-08-10 07:59:29 +00:00
|
|
|
rev = "v${finalAttrs.version}";
|
2023-11-16 04:20:00 +00:00
|
|
|
hash = "sha256-hVQPLRyDXrqpheAqzC/hQ/ZaFxP1c7ClAJQs3wlEcGc=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2023-08-10 07:59:29 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
pkg-config
|
|
|
|
wrapGAppsHook
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
alsa-lib
|
|
|
|
gtk3
|
|
|
|
libpulseaudio
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-06-16 17:23:12 +00:00
|
|
|
makeFlags = [
|
|
|
|
"AR=${stdenv.cc.targetPrefix}ar"
|
|
|
|
];
|
|
|
|
|
2023-08-10 07:59:29 +00:00
|
|
|
configurePhase = ''
|
|
|
|
runHook preConfigure
|
|
|
|
|
|
|
|
cp makefiles/makefile.defs.linux.pulse makefile.defs
|
|
|
|
|
|
|
|
runHook postConfigure
|
|
|
|
'';
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
installPhase = ''
|
2023-08-10 07:59:29 +00:00
|
|
|
runHook preInstall
|
|
|
|
|
2021-07-14 22:03:04 +00:00
|
|
|
install -Dt $out/bin praat
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2023-08-10 07:59:29 +00:00
|
|
|
runHook postInstall
|
|
|
|
'';
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-07-14 22:03:04 +00:00
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2023-08-10 07:59:29 +00:00
|
|
|
meta = {
|
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/";
|
2023-08-10 07:59:29 +00:00
|
|
|
license = lib.licenses.gpl2Plus; # Has some 3rd-party code in it though
|
|
|
|
maintainers = with lib.maintainers; [ orivej ];
|
|
|
|
platforms = lib.platforms.linux;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
2023-08-10 07:59:29 +00:00
|
|
|
})
|