Merge pull request #125004 from hlolli/lowdown-darwin
lowdown: fix aarch64-darwin by removing deprecated sandbox
This commit is contained in:
commit
deaa70e29e
@ -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;
|
||||
};
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user