nixpkgs/pkgs/applications/audio/praat/default.nix
2022-02-12 23:15:26 +00:00

35 lines
889 B
Nix

{ lib, stdenv, fetchFromGitHub, pkg-config, wrapGAppsHook, alsa-lib, gtk3, libpulseaudio }:
stdenv.mkDerivation rec {
pname = "praat";
version = "6.2.07";
src = fetchFromGitHub {
owner = "praat";
repo = "praat";
rev = "v${version}";
sha256 = "sha256-MM8uC1+d1P7aZI460fCcHWtE7+xfJV1ZFj2cdp/b1rY=";
};
configurePhase = ''
cp makefiles/makefile.defs.linux.pulse makefile.defs
'';
installPhase = ''
install -Dt $out/bin praat
'';
nativeBuildInputs = [ pkg-config wrapGAppsHook ];
buildInputs = [ alsa-lib gtk3 libpulseaudio ];
enableParallelBuilding = true;
meta = with lib; {
description = "Doing phonetics by computer";
homepage = "https://www.fon.hum.uva.nl/praat/";
license = licenses.gpl2Plus; # Has some 3rd-party code in it though
maintainers = with maintainers; [ orivej ];
platforms = platforms.linux;
};
}