Merge pull request #324137 from malob/fix-mealie-darwin

mealie: fix Darwin builds
This commit is contained in:
Aleksana 2024-07-24 12:57:07 +08:00 committed by GitHub
commit 885ae53a58
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1,10 +1,10 @@
{ lib
, stdenv
, callPackage
, fetchFromGitHub
, makeWrapper
, nixosTests
, python3Packages
, stdenv
, writeShellScript
}:
@ -31,8 +31,17 @@ let
rev = "c56dd9f29469c8a9f34456b8c0d6ae0476110516";
hash = "sha256-XNps3ZApU8m07bfPEnvip1w+3hLajdn9+L5+IpEaP0c=";
};
# Can remove once the `register` keyword is removed from source files
# Configure overwrites CXXFLAGS so patch it in the Makefile
postConfigure = lib.optionalString stdenv.cc.isClang ''
substituteInPlace Makefile \
--replace-fail "CXXFLAGS = " "CXXFLAGS = -std=c++14 "
'';
};
in pythonpkgs.buildPythonPackage rec {
in
pythonpkgs.buildPythonPackage rec {
pname = "mealie";
inherit version src;
pyproject = true;