diff options
author | hlolli <hlolli@gmail.com> | 2021-05-31 02:18:05 +0200 |
---|---|---|
committer | hlolli <hlolli@gmail.com> | 2021-05-31 02:18:05 +0200 |
commit | b62962b2746ac9b21d5d22583cd30e1bbdb63964 (patch) | |
tree | 27cba10f308ee033d331b6ad728e97ec80efc895 /pkgs/tools/typesetting | |
parent | 1f4163d8394b5fa933368d10853f106bebe9c18d (diff) | |
download | nixlib-b62962b2746ac9b21d5d22583cd30e1bbdb63964.tar nixlib-b62962b2746ac9b21d5d22583cd30e1bbdb63964.tar.gz nixlib-b62962b2746ac9b21d5d22583cd30e1bbdb63964.tar.bz2 nixlib-b62962b2746ac9b21d5d22583cd30e1bbdb63964.tar.lz nixlib-b62962b2746ac9b21d5d22583cd30e1bbdb63964.tar.xz nixlib-b62962b2746ac9b21d5d22583cd30e1bbdb63964.tar.zst nixlib-b62962b2746ac9b21d5d22583cd30e1bbdb63964.zip |
remove unneccecary substitute and aarch64 platform check
Diffstat (limited to 'pkgs/tools/typesetting')
-rw-r--r-- | pkgs/tools/typesetting/lowdown/default.nix | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/pkgs/tools/typesetting/lowdown/default.nix b/pkgs/tools/typesetting/lowdown/default.nix index 2de00702a388..8c55985a404c 100644 --- a/pkgs/tools/typesetting/lowdown/default.nix +++ b/pkgs/tools/typesetting/lowdown/default.nix @@ -14,6 +14,9 @@ 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} \ @@ -24,17 +27,12 @@ stdenv.mkDerivation rec { ''; # Fix lib extension so that fixDarwinDylibNames detects it - postInstall = lib.optionalString (stdenv.isDarwin && !stdenv.isAarch64) '' + postInstall = lib.optionalString (stdenv.isDarwin) '' mv $lib/lib/liblowdown.{so,dylib} ''; patches = lib.optional (!stdenv.hostPlatform.isStatic) ./shared.patch; - patchPhase = lib.optionalString (stdenv.isDarwin && stdenv.isAarch64) '' - substituteInPlace main.c \ - --replace '#elif HAVE_SANDBOX_INIT' '#elif 0' - ''; - doInstallCheck = stdenv.hostPlatform == stdenv.buildPlatform; installCheckPhase = "echo '# TEST' > test.md; $out/bin/lowdown test.md"; |