mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-13 09:13:17 +00:00
67 lines
1.1 KiB
Nix
67 lines
1.1 KiB
Nix
{
|
|
stdenv
|
|
, fetchFromGitHub
|
|
, fetchurl
|
|
, freetype
|
|
, jansson
|
|
, lib
|
|
, libGL
|
|
, libX11
|
|
, libXcursor
|
|
, libXext
|
|
, libXrandr
|
|
, libarchive
|
|
, liblo
|
|
, libsamplerate
|
|
, mesa
|
|
, pkg-config
|
|
, python3
|
|
, speexdsp
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "cardinal";
|
|
version = "22.06";
|
|
|
|
src = fetchurl {
|
|
url =
|
|
"https://github.com/DISTRHO/Cardinal/releases/download/${version}/cardinal+deps-${version}.tar.xz";
|
|
sha256 = "sha256-h7pNoLpB7XkWHZUCQfvJsSnOn37DcP9xuH9kxtfmCos=";
|
|
};
|
|
|
|
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
|
|
];
|
|
|
|
hardeningDisable = [ "format" ];
|
|
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;
|
|
};
|
|
}
|