Merge pull request #125004 from hlolli/lowdown-darwin

lowdown: fix aarch64-darwin by removing deprecated sandbox
launchpad/nixpkgs/master
Domen Kožar 3 years ago committed by GitHub
commit deaa70e29e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 13
      pkgs/tools/typesetting/lowdown/default.nix

@ -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…
Cancel
Save