2023-05-24 13:37:59 +00:00
|
|
|
{ stdenv
|
|
|
|
, cmake
|
|
|
|
, lib
|
|
|
|
, fetchFromGitHub
|
|
|
|
, wrapQtAppsHook
|
|
|
|
, qtbase
|
|
|
|
, qtcharts
|
|
|
|
, fftw
|
|
|
|
, libtorch-bin
|
|
|
|
, portaudio
|
|
|
|
, eigen
|
|
|
|
, xorg
|
|
|
|
, pkg-config
|
|
|
|
, autoPatchelfHook
|
|
|
|
, soxr
|
|
|
|
, freetype
|
|
|
|
, libsamplerate
|
|
|
|
, armadillo
|
|
|
|
, tomlplusplus
|
2021-10-17 02:12:59 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "in-formant";
|
2023-05-24 13:37:59 +00:00
|
|
|
version = "unstable-2022-09-15";
|
2021-10-17 02:12:59 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "in-formant";
|
|
|
|
repo = "in-formant";
|
2023-05-24 13:37:59 +00:00
|
|
|
rev = "e0606feecff70f0fd4226ff8f116e46817dd7462";
|
|
|
|
hash = "sha256-/4eKny9M2e8Lb9LOiKBj9QLE00CAaD+2ZAwn48lnvKQ=";
|
2021-10-17 02:12:59 +00:00
|
|
|
fetchSubmodules = true;
|
|
|
|
};
|
|
|
|
|
2023-05-24 13:37:59 +00:00
|
|
|
patches = [
|
|
|
|
# Ignore the freetype sources bundled as a submodule:
|
|
|
|
# /nix/store/…-harfbuzz-7.0.0/lib/libharfbuzz.so.0: undefined reference to `FT_Get_Transform'
|
|
|
|
./0001-Avoid-using-vendored-dependencies-we-have-in-nixpkgs.patch
|
|
|
|
];
|
|
|
|
|
|
|
|
nativeBuildInputs = [ cmake pkg-config wrapQtAppsHook autoPatchelfHook ];
|
2021-10-17 02:12:59 +00:00
|
|
|
|
|
|
|
buildInputs = [
|
2023-05-24 13:37:59 +00:00
|
|
|
qtbase
|
|
|
|
qtcharts
|
2021-10-17 02:12:59 +00:00
|
|
|
fftw
|
|
|
|
libtorch-bin
|
|
|
|
portaudio
|
|
|
|
eigen
|
|
|
|
xorg.libxcb
|
|
|
|
soxr
|
2023-05-24 13:37:59 +00:00
|
|
|
libsamplerate
|
|
|
|
armadillo
|
|
|
|
tomlplusplus
|
2021-10-17 02:12:59 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/bin
|
|
|
|
cp in-formant $out/bin
|
2024-01-02 11:29:13 +00:00
|
|
|
install -Dm444 $src/dist-res/in-formant.desktop -t $out/share/applications
|
|
|
|
install -Dm444 $src/dist-res/in-formant.png -t $out/share/icons/hicolor/512x512/apps
|
2021-10-17 02:12:59 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "A real-time pitch and formant tracking software";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "in-formant";
|
2021-10-17 02:12:59 +00:00
|
|
|
homepage = "https://github.com/in-formant/in-formant";
|
|
|
|
license = licenses.asl20;
|
2023-05-24 13:37:59 +00:00
|
|
|
# currently broken on i686-linux and aarch64-linux due to other nixpkgs dependencies
|
|
|
|
platforms = [ "x86_64-linux" ];
|
2021-10-17 02:12:59 +00:00
|
|
|
maintainers = with maintainers; [ ckie ];
|
|
|
|
};
|
|
|
|
}
|