cardinal: add headless argument (#357100)

This commit is contained in:
Matthew Croughan 2024-11-19 14:18:54 +00:00 committed by GitHub
commit f8b656d071
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -22,6 +22,7 @@
, python3
, speexdsp
, libglvnd
, headless ? false
}:
stdenv.mkDerivation rec {
@ -68,7 +69,7 @@ stdenv.mkDerivation rec {
];
hardeningDisable = [ "format" ];
makeFlags = [ "SYSDEPS=true" "PREFIX=$(out)" ];
makeFlags = lib.optional headless "HEADLESS=true" ++ [ "SYSDEPS=true" "PREFIX=$(out)" ];
postInstall = ''
wrapProgram $out/bin/Cardinal \