nixpkgs/pkgs/applications/audio/praat/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

39 lines
948 B
Nix
Raw Normal View History

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 {
pname = "praat";
2023-02-04 06:26:23 +00:00
version = "6.3.06";
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}";
2023-02-04 06:26:23 +00:00
sha256 = "sha256-KwJ8ia1yQmmG+N44ipvGCbuoR2cL03STSTKzUwlDqms=";
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
'';
2022-05-22 21:27:19 +00:00
makeFlags = [
"AR=${stdenv.cc.targetPrefix}ar"
];
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";
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
};
}