29 stdenv.mkDerivation rec {
34 url = "https://github.com/DISTRHO/Cardinal/releases/download/${version}/cardinal+deps-${version}.tar.xz";
35 hash = "sha256-vJxKtZ0rVjf0RJfTNRxpzps1F2k0hHuiPnd1OwpULhQ=";
39 patchShebangs ./dpf/utils/generate-ttl.sh
42 dontUseCmakeConfigure = true;
43 enableParallelBuilding = true;
72 hardeningDisable = [ "format" ];
78 ++ lib.optional (stdenv.hostPlatform != stdenv.buildPlatform) "CROSS_COMPILING=true"
79 ++ lib.optional headless "HEADLESS=true";
82 wrapProgram $out/bin/Cardinal \
83 --suffix LD_LIBRARY_PATH : ${lib.makeLibraryPath [ libjack2 ]}
85 wrapProgram $out/bin/CardinalMini \
86 --suffix LD_LIBRARY_PATH : ${lib.makeLibraryPath [ libjack2 ]}
88 # this doesn't work and is mainly just a test tool for the developers anyway.
89 rm -f $out/bin/CardinalNative
93 description = "Plugin wrapper around VCV Rack";
94 homepage = "https://github.com/DISTRHO/cardinal";
95 license = lib.licenses.gpl3;
96 maintainers = with lib.maintainers; [
100 mainProgram = "Cardinal";
101 platforms = lib.platforms.all;
102 # never built on aarch64-darwin, x86_64-darwin since first introduction in nixpkgs
103 broken = stdenv.hostPlatform.isDarwin;