rnote: unbreak darwin

This commit is contained in:
Olivér Falvai
2024-11-16 08:29:44 +01:00
parent db7b5116bf
commit a76c14685b
+4 -5
View File
@@ -22,7 +22,6 @@
, rustc
, shared-mime-info
, wrapGAppsHook4
, darwin
}:
stdenv.mkDerivation rec {
@@ -77,8 +76,6 @@ stdenv.mkDerivation rec {
poppler
] ++ lib.optionals stdenv.hostPlatform.isLinux [
alsa-lib
] ++ lib.optionals stdenv.hostPlatform.isDarwin [
darwin.apple_sdk.frameworks.AudioUnit
];
postPatch = ''
@@ -86,6 +83,10 @@ stdenv.mkDerivation rec {
patchShebangs build-aux
'';
env = lib.optionalAttrs stdenv.cc.isClang {
NIX_CFLAGS_COMPILE = "-Wno-error=incompatible-function-pointer-types";
};
meta = with lib; {
homepage = "https://github.com/flxzt/rnote";
changelog = "https://github.com/flxzt/rnote/releases/tag/${src.rev}";
@@ -93,7 +94,5 @@ stdenv.mkDerivation rec {
license = licenses.gpl3Plus;
maintainers = with maintainers; [ dotlambda gepbird yrd ];
platforms = platforms.unix;
# compiler error since 2023-11-17
broken = stdenv.hostPlatform.isDarwin;
};
}