Merge pull request #125004 from hlolli/lowdown-darwin

lowdown: fix aarch64-darwin by removing deprecated sandbox
This commit is contained in:
Domen Kožar 2021-05-31 09:20:31 +02:00 committed by GitHub
commit deaa70e29e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -14,6 +14,10 @@ stdenv.mkDerivation rec {
nativeBuildInputs = [ which ]
++ lib.optionals stdenv.isDarwin [ fixDarwinDylibNames ];
preConfigure = lib.optionalString (stdenv.isDarwin && stdenv.isAarch64) ''
echo 'HAVE_SANDBOX_INIT=0' > configure.local
'';
configurePhase = ''
runHook preConfigure
./configure PREFIX=''${!outputDev} \
@ -30,6 +34,14 @@ stdenv.mkDerivation rec {
patches = lib.optional (!stdenv.hostPlatform.isStatic) ./shared.patch;
doInstallCheck = stdenv.hostPlatform == stdenv.buildPlatform;
installCheckPhase = ''
runHook preInstallCheck
echo '# TEST' > test.md
$out/bin/lowdown test.md
runHook postInstallCheck
'';
doCheck = stdenv.hostPlatform == stdenv.buildPlatform;
checkTarget = "regress";
@ -41,4 +53,3 @@ stdenv.mkDerivation rec {
platforms = platforms.unix;
};
}