2022-03-05 16:20:37 +00:00
|
|
|
{
|
|
|
|
stdenv
|
|
|
|
, fetchFromGitHub
|
|
|
|
, fetchurl
|
|
|
|
, freetype
|
|
|
|
, jansson
|
|
|
|
, lib
|
|
|
|
, libGL
|
|
|
|
, libX11
|
|
|
|
, libXcursor
|
|
|
|
, libXext
|
|
|
|
, libXrandr
|
|
|
|
, libarchive
|
|
|
|
, liblo
|
|
|
|
, libsamplerate
|
|
|
|
, mesa
|
|
|
|
, pkg-config
|
|
|
|
, python3
|
|
|
|
, speexdsp
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2022-03-30 09:31:56 +00:00
|
|
|
pname = "cardinal";
|
2022-12-17 10:02:37 +00:00
|
|
|
version = "22.11";
|
2022-03-05 16:20:37 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url =
|
2022-07-14 12:49:19 +00:00
|
|
|
"https://github.com/DISTRHO/Cardinal/releases/download/${version}/cardinal+deps-${version}.tar.xz";
|
2022-12-17 10:02:37 +00:00
|
|
|
sha256 = "sha256-xYQi209whY5/lN+6Fp7PTp7JSzL6RS6VL+Exst7RrS0=";
|
2022-03-05 16:20:37 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
prePatch = ''
|
|
|
|
patchShebangs ./dpf/utils/generate-ttl.sh
|
|
|
|
'';
|
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
|
|
|
nativeBuildInputs = [ pkg-config ];
|
|
|
|
buildInputs = [
|
|
|
|
freetype
|
|
|
|
jansson
|
|
|
|
libGL
|
|
|
|
libX11
|
|
|
|
libXcursor
|
|
|
|
libXext
|
|
|
|
libXrandr
|
|
|
|
libXrandr
|
|
|
|
libarchive
|
|
|
|
liblo
|
|
|
|
libsamplerate
|
|
|
|
mesa
|
|
|
|
python3
|
|
|
|
speexdsp
|
|
|
|
];
|
|
|
|
|
2022-07-14 12:49:19 +00:00
|
|
|
hardeningDisable = [ "format" ];
|
2022-03-05 16:20:37 +00:00
|
|
|
makeFlags = [ "SYSDEPS=true" "PREFIX=$(out)" ];
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Plugin wrapper around VCV Rack";
|
|
|
|
homepage = "https://github.com/DISTRHO/cardinal";
|
|
|
|
license = lib.licenses.gpl3;
|
|
|
|
maintainers = [ lib.maintainers.magnetophon ];
|
|
|
|
platforms = lib.platforms.all;
|
2022-12-17 10:02:37 +00:00
|
|
|
# never built on aarch64-darwin, x86_64-darwin since first introduction in nixpkgs
|
|
|
|
broken = stdenv.isDarwin;
|
2022-03-05 16:20:37 +00:00
|
|
|
};
|
|
|
|
}
|