mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-11 14:43:47 +00:00
![Silvan Mosberger](/assets/img/avatar_default.png)
After final improvements to the official formatter implementation, this commit now performs the first treewide reformat of Nix files using it. This is part of the implementation of RFC 166. Only "inactive" files are reformatted, meaning only files that aren't being touched by any PR with activity in the past 2 months. This is to avoid conflicts for PRs that might soon be merged. Later we can do a full treewide reformat to get the rest, which should not cause as many conflicts. A CI check has already been running for some time to ensure that new and already-formatted files are formatted, so the files being reformatted here should also stay formatted. This commit was automatically created and can be verified using nix-builda08b3a4d19
.tar.gz \ --argstr baseRevb32a094368
result/bin/apply-formatting $NIXPKGS_PATH
70 lines
1.5 KiB
Nix
70 lines
1.5 KiB
Nix
{
|
|
alsa-lib,
|
|
fetchFromGitHub,
|
|
gtk3,
|
|
lib,
|
|
libpulseaudio,
|
|
pkg-config,
|
|
stdenv,
|
|
wrapGAppsHook3,
|
|
}:
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
pname = "praat";
|
|
version = "6.4.23";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "praat";
|
|
repo = "praat";
|
|
rev = "v${finalAttrs.version}";
|
|
hash = "sha256-KZpWQxD+e/QJ8rg0mK4lsMPik+GrqqJf756tsVGev+s=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
pkg-config
|
|
wrapGAppsHook3
|
|
];
|
|
|
|
buildInputs = [
|
|
alsa-lib
|
|
gtk3
|
|
libpulseaudio
|
|
];
|
|
|
|
makeFlags = [
|
|
"AR=${stdenv.cc.targetPrefix}ar"
|
|
];
|
|
|
|
configurePhase = ''
|
|
runHook preConfigure
|
|
|
|
cp makefiles/makefile.defs.linux.pulse makefile.defs
|
|
|
|
runHook postConfigure
|
|
'';
|
|
|
|
installPhase = ''
|
|
runHook preInstall
|
|
|
|
install -Dt $out/bin praat
|
|
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
|
|
|
|
runHook postInstall
|
|
'';
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
meta = {
|
|
description = "Doing phonetics by computer";
|
|
mainProgram = "praat";
|
|
homepage = "https://www.fon.hum.uva.nl/praat/";
|
|
license = lib.licenses.gpl2Plus; # Has some 3rd-party code in it though
|
|
maintainers = with lib.maintainers; [ orivej ];
|
|
platforms = lib.platforms.linux;
|
|
};
|
|
})
|