mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-27 01:13:05 +00:00
2641d97cbf
Reproduction script: # Bulk rewrite ./maintainers/scripts/sha-to-sri.py pkgs/by-name # Revert some packages which will need manual intervention for n in amdvlk azure-cli cargo-profiler corefonts flatito fluxcd gist perf_data_converter protoc-gen-js solana-cli swt verible; do git checkout -- "pkgs/by-name/${n:0:2}/${n}" done
54 lines
1.4 KiB
Nix
54 lines
1.4 KiB
Nix
{ stdenv, lib, fetchFromGitHub, cmake, pkg-config, cairo, libxkbcommon
|
|
, xcbutilcursor, xcbutilkeysyms, xcbutil, libXrandr, libXinerama, libXcursor
|
|
, alsa-lib, libjack2, lv2, gcc-unwrapped }:
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
pname = "chow-centaur";
|
|
version = "1.4.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "jatinchowdhury18";
|
|
repo = "KlonCentaur";
|
|
rev = "v${finalAttrs.version}";
|
|
hash = "sha256-kDDom6q0Tgni0/L+FgBVZC1/sL9W9fRP60U4o4ijP1c=";
|
|
fetchSubmodules = true;
|
|
};
|
|
|
|
nativeBuildInputs = [ cmake pkg-config ];
|
|
buildInputs = [
|
|
cairo
|
|
libxkbcommon
|
|
xcbutilcursor
|
|
xcbutilkeysyms
|
|
xcbutil
|
|
libXrandr
|
|
libXinerama
|
|
libXcursor
|
|
alsa-lib
|
|
libjack2
|
|
lv2
|
|
];
|
|
|
|
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
|
|
cd ChowCentaur/ChowCentaur_artefacts/Release
|
|
cp -r LV2/ChowCentaur.lv2 $out/lib/lv2
|
|
cp -r VST3/ChowCentaur.vst3 $out/lib/vst3
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description =
|
|
"Digital emulation of the Klon Centaur guitar pedal using RNNs, Wave Digital Filters, and more";
|
|
homepage = "https://github.com/jatinchowdhury18/KlonCentaur";
|
|
license = licenses.bsd3;
|
|
platforms = [ "x86_64-linux" ];
|
|
maintainers = with maintainers; [ magnetophon ];
|
|
};
|
|
})
|