diff options
author | Sandro <sandro.jaeckel@gmail.com> | 2021-01-25 11:28:05 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-25 11:28:05 +0100 |
commit | ce7b327a52d1b82f82ae061754545b1c54b06c66 (patch) | |
tree | 81a8e5271c78abb5527f3ed5143f3f1c16756584 /pkgs | |
parent | bacfa2d9200e08bf8f4b77607e9d90222638cff3 (diff) | |
parent | c455bcb27b80879ba32f44b85cb4f8420f53a1d2 (diff) | |
download | nixpkgs-ce7b327a52d1b82f82ae061754545b1c54b06c66.tar nixpkgs-ce7b327a52d1b82f82ae061754545b1c54b06c66.tar.gz nixpkgs-ce7b327a52d1b82f82ae061754545b1c54b06c66.tar.bz2 nixpkgs-ce7b327a52d1b82f82ae061754545b1c54b06c66.tar.lz nixpkgs-ce7b327a52d1b82f82ae061754545b1c54b06c66.tar.xz nixpkgs-ce7b327a52d1b82f82ae061754545b1c54b06c66.tar.zst nixpkgs-ce7b327a52d1b82f82ae061754545b1c54b06c66.zip |
Merge pull request #110740 from r-burns/lowdown
lowdown: fix dylib on darwin
Diffstat (limited to 'pkgs')
-rw-r--r-- | pkgs/tools/typesetting/lowdown/default.nix | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/pkgs/tools/typesetting/lowdown/default.nix b/pkgs/tools/typesetting/lowdown/default.nix index 668e54c1730..40606199b83 100644 --- a/pkgs/tools/typesetting/lowdown/default.nix +++ b/pkgs/tools/typesetting/lowdown/default.nix @@ -1,4 +1,4 @@ -{ lib, stdenv, fetchurl, which }: +{ lib, stdenv, fetchurl, fixDarwinDylibNames, which }: stdenv.mkDerivation rec { pname = "lowdown"; @@ -11,7 +11,8 @@ stdenv.mkDerivation rec { sha512 = "18q8i8lh8w127vzw697n0bzv4mchhna1p4s672hjvy39l3ls8rlj5nwq5npr5fry06yil62sjmq4652vw29r8l49wwk5j82a8l2nr7c"; }; - nativeBuildInputs = [ which ]; + nativeBuildInputs = [ which ] + ++ lib.optionals stdenv.isDarwin [ fixDarwinDylibNames ]; configurePhase = '' ./configure PREFIX=''${!outputDev} \ @@ -20,6 +21,11 @@ stdenv.mkDerivation rec { MANDIR=''${!outputMan}/share/man ''; + # Fix lib extension so that fixDarwinDylibNames detects it + postInstall = lib.optionalString stdenv.isDarwin '' + mv $lib/lib/liblowdown.{so,dylib} + ''; + patches = lib.optional (!stdenv.hostPlatform.isStatic) ./shared.patch; meta = with lib; { |