nixpkgs/pkgs/applications/audio/cardinal/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

71 lines
1.3 KiB
Nix
Raw Normal View History

2022-02-17 16:56:26 +00:00
{
stdenv
, fetchFromGitHub
, fetchpatch
, fetchurl
, fetchzip
, freetype
, jansson
, lib
, libGL
, libX11
, libXcursor
, libXext
, libXrandr
, libarchive
, liblo
, libsamplerate
, mesa
, pkg-config
, python3
, speexdsp
}:
stdenv.mkDerivation rec {
2022-03-22 16:57:23 +00:00
pname = "cardinal";
2022-05-01 10:11:59 +00:00
version = "22.04";
2022-02-17 16:56:26 +00:00
src = fetchurl {
url =
"https://github.com/DISTRHO/Cardinal/releases/download/${version}/cardinal-${version}.tar.xz";
2022-05-01 10:11:59 +00:00
sha256 = "sha256-7As4CckwByrTynOOpwAXa1R9Bpp/ft537f+PvAgz/BE=";
2022-02-17 16:56:26 +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
];
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-05-21 13:27:02 +00:00
# ../../utils/CarlaPluginUI.cpp:31:10: fatal error: 'Cocoa/Cocoa.h' file not found
# # import <Cocoa/Cocoa.h>
broken = stdenv.isDarwin;
2022-02-17 16:56:26 +00:00
};
}