cardinal: nixfmt

This commit is contained in:
matthewcroughan 2024-11-20 02:55:19 +00:00
parent 58dba3b4da
commit 6a668a7390

View File

@ -1,28 +1,29 @@
{ stdenv {
, fetchurl stdenv,
, cmake fetchurl,
, dbus cmake,
, fftwFloat dbus,
, file fftwFloat,
, freetype file,
, jansson freetype,
, lib jansson,
, libGL lib,
, libX11 libGL,
, libXcursor libX11,
, libXext libXcursor,
, libXrandr libXext,
, libarchive libXrandr,
, libjack2 libarchive,
, liblo libjack2,
, libsamplerate liblo,
, libsndfile libsamplerate,
, makeWrapper libsndfile,
, pkg-config makeWrapper,
, python3 pkg-config,
, speexdsp python3,
, libglvnd speexdsp,
, headless ? false libglvnd,
headless ? false,
}: }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
@ -69,9 +70,13 @@ stdenv.mkDerivation rec {
]; ];
hardeningDisable = [ "format" ]; hardeningDisable = [ "format" ];
makeFlags = [ "SYSDEPS=true" "PREFIX=$(out)" ] makeFlags =
++ lib.optional (stdenv.hostPlatform != stdenv.buildPlatform) "CROSS_COMPILING=true" [
++ lib.optional headless "HEADLESS=true"; "SYSDEPS=true"
"PREFIX=$(out)"
]
++ lib.optional (stdenv.hostPlatform != stdenv.buildPlatform) "CROSS_COMPILING=true"
++ lib.optional headless "HEADLESS=true";
postInstall = '' postInstall = ''
wrapProgram $out/bin/Cardinal \ wrapProgram $out/bin/Cardinal \
@ -88,7 +93,10 @@ stdenv.mkDerivation rec {
description = "Plugin wrapper around VCV Rack"; description = "Plugin wrapper around VCV Rack";
homepage = "https://github.com/DISTRHO/cardinal"; homepage = "https://github.com/DISTRHO/cardinal";
license = lib.licenses.gpl3; license = lib.licenses.gpl3;
maintainers = with lib.maintainers; [ magnetophon PowerUser64 ]; maintainers = with lib.maintainers; [
magnetophon
PowerUser64
];
mainProgram = "Cardinal"; mainProgram = "Cardinal";
platforms = lib.platforms.all; platforms = lib.platforms.all;
# never built on aarch64-darwin, x86_64-darwin since first introduction in nixpkgs # never built on aarch64-darwin, x86_64-darwin since first introduction in nixpkgs