2023-08-06 10:29:36 +00:00
|
|
|
{
|
|
|
|
alsa-lib
|
|
|
|
, fetchFromGitHub
|
|
|
|
, gtk3
|
|
|
|
, lib
|
|
|
|
, libpulseaudio
|
|
|
|
, pkg-config
|
|
|
|
, stdenv
|
|
|
|
, wrapGAppsHook
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "praat";
|
2024-03-18 03:05:49 +00:00
|
|
|
version = "6.4.07";
|
2014-03-07 13:59:51 +00:00
|
|
|
|
2021-06-30 13:29:45 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "praat";
|
|
|
|
repo = "praat";
|
2023-08-06 10:29:36 +00:00
|
|
|
rev = "v${finalAttrs.version}";
|
2024-03-18 03:05:49 +00:00
|
|
|
hash = "sha256-r36znpkyI6/UPtOm1ZjedOadRG1BiIscRV9qRLf/A5Q=";
|
2012-08-27 18:25:54 +00:00
|
|
|
};
|
|
|
|
|
2023-08-06 10:29:36 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
pkg-config
|
|
|
|
wrapGAppsHook
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
alsa-lib
|
|
|
|
gtk3
|
|
|
|
libpulseaudio
|
|
|
|
];
|
2012-08-27 18:25:54 +00:00
|
|
|
|
2022-05-22 21:27:19 +00:00
|
|
|
makeFlags = [
|
|
|
|
"AR=${stdenv.cc.targetPrefix}ar"
|
|
|
|
];
|
|
|
|
|
2023-08-06 10:29:36 +00:00
|
|
|
configurePhase = ''
|
|
|
|
runHook preConfigure
|
|
|
|
|
|
|
|
cp makefiles/makefile.defs.linux.pulse makefile.defs
|
|
|
|
|
|
|
|
runHook postConfigure
|
|
|
|
'';
|
|
|
|
|
2012-08-27 18:25:54 +00:00
|
|
|
installPhase = ''
|
2023-08-06 10:29:36 +00:00
|
|
|
runHook preInstall
|
|
|
|
|
2021-06-30 13:29:45 +00:00
|
|
|
install -Dt $out/bin praat
|
2023-12-01 21:17:20 +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
|
2012-08-27 18:25:54 +00:00
|
|
|
|
2023-08-06 10:29:36 +00:00
|
|
|
runHook postInstall
|
|
|
|
'';
|
2012-08-27 18:25:54 +00:00
|
|
|
|
2021-06-30 13:29:45 +00:00
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2023-08-06 10:29:36 +00:00
|
|
|
meta = {
|
2012-08-27 18:25:54 +00:00
|
|
|
description = "Doing phonetics by computer";
|
2024-03-19 02:14:51 +00:00
|
|
|
mainProgram = "praat";
|
2020-10-02 07:58:50 +00:00
|
|
|
homepage = "https://www.fon.hum.uva.nl/praat/";
|
2023-08-06 10:29:36 +00:00
|
|
|
license = lib.licenses.gpl2Plus; # Has some 3rd-party code in it though
|
|
|
|
maintainers = with lib.maintainers; [ orivej ];
|
|
|
|
platforms = lib.platforms.linux;
|
2012-08-27 18:25:54 +00:00
|
|
|
};
|
2023-08-06 10:29:36 +00:00
|
|
|
})
|