rnote: unbreak darwin

(cherry picked from commit a76c14685b)
This commit is contained in:
Olivér Falvai 2024-11-15 19:55:49 +01:00 committed by github-actions[bot]
parent 7937932921
commit 82801809d9

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;
};
}