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";
|
2024-02-07 01:22:34 +00:00
|
|
|
version = "6.4.05";
|
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}";
|
2024-02-07 01:22:34 +00:00
|
|
|
hash = "sha256-ctCDxE//vH4i22bKYBs14pdmp+1M6K+w7Tm22ZoGOf8=";
|
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
|
2024-01-02 11:29:13 +00:00
|
|
|
install -Dm444 main/praat.desktop -t $out/share/applications
|
|
|
|
install -Dm444 main/praat-32.ico $out/share/icons/hicolor/32x32/apps/praat.ico
|
|
|
|
install -Dm444 main/praat-256.ico $out/share/icons/hicolor/256x256/apps/praat.ico
|
|
|
|
install -Dm444 main/praat-480.png $out/share/icons/hicolor/480x480/apps/praat.png
|
|
|
|
install -Dm444 main/praat-480.svg $out/share/icons/hicolor/scalable/apps/praat.svg
|
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
|
|
|
})
|