mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-23 15:33:13 +00:00
39 lines
948 B
Nix
39 lines
948 B
Nix
{ lib, stdenv, fetchFromGitHub, pkg-config, wrapGAppsHook, alsa-lib, gtk3, libpulseaudio }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "praat";
|
|
version = "6.3.05";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "praat";
|
|
repo = "praat";
|
|
rev = "v${version}";
|
|
sha256 = "sha256-0e225cmP0CSYjRYNEXi4Oqq9o8XR2N7bNS1X5x+mQKw=";
|
|
};
|
|
|
|
configurePhase = ''
|
|
cp makefiles/makefile.defs.linux.pulse makefile.defs
|
|
'';
|
|
|
|
makeFlags = [
|
|
"AR=${stdenv.cc.targetPrefix}ar"
|
|
];
|
|
|
|
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;
|
|
};
|
|
}
|