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

35 lines
889 B
Nix
Raw Normal View History

2021-06-30 15:29:45 +02:00
{ lib, stdenv, fetchFromGitHub, pkg-config, wrapGAppsHook, alsa-lib, gtk3, libpulseaudio }:
2012-08-27 20:25:54 +02:00
2015-12-15 03:56:28 +01:00
stdenv.mkDerivation rec {
pname = "praat";
2021-08-26 14:12:17 +02:00
version = "6.1.52";
2014-03-07 14:59:51 +01:00
2021-06-30 15:29:45 +02:00
src = fetchFromGitHub {
owner = "praat";
repo = "praat";
rev = "v${version}";
2021-08-26 14:12:17 +02:00
sha256 = "sha256-O/PjR2J9IMifOtCIsvo90XeRK/G29HQYt3zrn2lVjxA=";
2012-08-27 20:25:54 +02:00
};
configurePhase = ''
2021-06-30 15:29:45 +02:00
cp makefiles/makefile.defs.linux.pulse makefile.defs
2012-08-27 20:25:54 +02:00
'';
installPhase = ''
2021-06-30 15:29:45 +02:00
install -Dt $out/bin praat
2012-08-27 20:25:54 +02:00
'';
2021-06-30 15:29:45 +02:00
nativeBuildInputs = [ pkg-config wrapGAppsHook ];
buildInputs = [ alsa-lib gtk3 libpulseaudio ];
2012-08-27 20:25:54 +02:00
2021-06-30 15:29:45 +02:00
enableParallelBuilding = true;
meta = with lib; {
2012-08-27 20:25:54 +02:00
description = "Doing phonetics by computer";
homepage = "https://www.fon.hum.uva.nl/praat/";
2021-06-30 15:29:45 +02:00
license = licenses.gpl2Plus; # Has some 3rd-party code in it though
maintainers = with maintainers; [ orivej ];
platforms = platforms.linux;
2012-08-27 20:25:54 +02:00
};
}