9833d56c24
Done with the help of https://github.com/Mindavi/nixpkgs-mark-broken Tool is still WIP but this is one of the first results. I manually audited the results and removed some results that were not valid. Note that some of these packages maybe should have more constrained platforms set instead of broken set, but I think not being perfectly correct is better than just keep trying to build all these things and never succeeding. Some observations: - Some darwin builds require XCode tools - aarch64-linux builds sometimes suffer from using gcc9 - gcc9 is getting older and misses some new libraries/features - Sometimes tools try to do system detection or expect some explicit settings for platforms that are not x86_64-linux
68 lines
1.2 KiB
Nix
68 lines
1.2 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.11";
|
|
|
|
src = fetchurl {
|
|
url =
|
|
"https://github.com/DISTRHO/Cardinal/releases/download/${version}/cardinal+deps-${version}.tar.xz";
|
|
sha256 = "sha256-xYQi209whY5/lN+6Fp7PTp7JSzL6RS6VL+Exst7RrS0=";
|
|
};
|
|
|
|
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;
|
|
# never built on aarch64-darwin, x86_64-darwin since first introduction in nixpkgs
|
|
broken = stdenv.isDarwin;
|
|
};
|
|
}
|