git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #125004 from hlolli/lowdown-darwin

lowdown: fix aarch64-darwin by removing deprecated sandbox

commitdeaa70e29e09300cca0f2724e5d0d9c8770f085a authorDomen Kožar <domen@dev.si> dateMon 31 May 2021, 09:20 (5 years ago) parent33b0520ded7f8f
1 file changed+12−1
pkgs/tools/typesetting/lowdown/default.nix+12−1
pkgs/tools/typesetting/lowdown/default.nix+12−1
@@ -14,6 +14,10 @@ stdenv.mkDerivation rec {
1414 nativeBuildInputs = [ which ]
1515 ++ lib.optionals stdenv.isDarwin [ fixDarwinDylibNames ];
1616
17+ preConfigure = lib.optionalString (stdenv.isDarwin && stdenv.isAarch64) ''
18+ echo 'HAVE_SANDBOX_INIT=0' > configure.local
19+ '';
20+
1721 configurePhase = ''
1822 runHook preConfigure
1923 ./configure PREFIX=''${!outputDev} \
@@ -30,6 +34,14 @@ stdenv.mkDerivation rec {
3034
3135 patches = lib.optional (!stdenv.hostPlatform.isStatic) ./shared.patch;
3236
37+ doInstallCheck = stdenv.hostPlatform == stdenv.buildPlatform;
38+ installCheckPhase = ''
39+ runHook preInstallCheck
40+ echo '# TEST' > test.md
41+ $out/bin/lowdown test.md
42+ runHook postInstallCheck
43+ '';
44+
3345 doCheck = stdenv.hostPlatform == stdenv.buildPlatform;
3446 checkTarget = "regress";
3547
@@ -41,4 +53,3 @@ stdenv.mkDerivation rec {
4153 platforms = platforms.unix;
4254 };
4355}
44−