Files
nixpkgs/pkgs/by-name/ch/chow-phaser/package.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

110 lines
2.1 KiB
Nix

{
alsa-lib,
at-spi2-core,
cmake,
curl,
dbus,
libepoxy,
fetchFromGitHub,
libglut,
freetype,
gcc-unwrapped,
gtk3,
lib,
libGL,
libXcursor,
libXdmcp,
libXext,
libXinerama,
libXrandr,
libXtst,
libdatrie,
libjack2,
libpsl,
libselinux,
libsepol,
libsysprof-capture,
libthai,
libxkbcommon,
pcre,
pkg-config,
python3,
sqlite,
stdenv,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "chow-phaser";
version = "1.1.1";
src = fetchFromGitHub {
owner = "jatinchowdhury18";
repo = "ChowPhaser";
tag = "v${finalAttrs.version}";
fetchSubmodules = true;
hash = "sha256-9wo7ZFMruG3QNvlpILSvrFh/Sx6J1qnlWc8+aQyS4tQ=";
};
nativeBuildInputs = [
pkg-config
cmake
];
buildInputs = [
alsa-lib
at-spi2-core
curl
dbus
libepoxy
libglut
freetype
gtk3
libGL
libXcursor
libXdmcp
libXext
libXinerama
libXrandr
libXtst
libdatrie
libjack2
libpsl
libselinux
libsepol
libsysprof-capture
libthai
libxkbcommon
pcre
python3
sqlite
gcc-unwrapped
];
cmakeFlags = [
"-DCMAKE_AR=${gcc-unwrapped}/bin/gcc-ar"
"-DCMAKE_RANLIB=${gcc-unwrapped}/bin/gcc-ranlib"
"-DCMAKE_NM=${gcc-unwrapped}/bin/gcc-nm"
];
installPhase = ''
mkdir -p $out/lib/lv2 $out/lib/vst3 $out/bin $out/share/doc/ChowPhaser/
cd ChowPhaserMono_artefacts/Release
cp libChowPhaserMono_SharedCode.a $out/lib
cp -r VST3/ChowPhaserMono.vst3 $out/lib/vst3
cp Standalone/ChowPhaserMono $out/bin
cd ../../ChowPhaserStereo_artefacts/Release
cp libChowPhaserStereo_SharedCode.a $out/lib
cp -r VST3/ChowPhaserStereo.vst3 $out/lib/vst3
cp Standalone/ChowPhaserStereo $out/bin
'';
meta = with lib; {
homepage = "https://github.com/jatinchowdhury18/ChowPhaser";
description = "Phaser effect based loosely on the Schulte Compact Phasing 'A'";
license = with licenses; [ bsd3 ];
mainProgram = "ChowPhaserStereo";
maintainers = with maintainers; [ magnetophon ];
platforms = platforms.linux;
};
})