@@ -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−