mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-15 00:24:47 +00:00
![aleksana](/assets/img/avatar_default.png)
We are migrating packages that meet below requirements: 1. using `callPackage` 2. called path is a directory 3. overriding set is empty (`{ }`) 4. not containing path expressions other than relative path (to makenixpkgs-vet happy) 5. not referenced by nix files outside of the directory, other than`pkgs/top-level/all-packages.nix` 6. not referencing nix files outside of the directory 7. not referencing `default.nix` (since it's changed to `package.nix`) 8. `outPath` doesn't change after migration The tool is here: https://github.com/Aleksanaa/by-name-migrate.
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.22";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "praat";
|
|
repo = "praat";
|
|
rev = "v${finalAttrs.version}";
|
|
hash = "sha256-bKWjazCCOIJm+VCAcnQGj3s0bbN4Ahx3RMNuLxZENXA=";
|
|
};
|
|
|
|
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;
|
|
};
|
|
})
|