iwona: fix build failure caused by src being a symlink

(cherry picked from commit 8d5563ec253a5efe68246f4fe20c0cbe9d5c3c1b)
This commit is contained in:
Ivan Trubach 2024-06-03 03:16:13 +03:00 committed by github-actions[bot]
parent 2b0f7c1e6e
commit 09f959da41
2 changed files with 4 additions and 2 deletions

@ -83,12 +83,13 @@ Release 23.11 ships with a new interface that will eventually replace `texlive.c
```nix
stdenvNoCC.mkDerivation rec {
src = texlive.pkgs.iwona;
dontUnpack = true;
inherit (src) pname version;
installPhase = ''
runHook preInstall
install -Dm644 fonts/opentype/nowacki/iwona/*.otf -t $out/share/fonts/opentype
install -Dm644 $src/fonts/opentype/nowacki/iwona/*.otf -t $out/share/fonts/opentype
runHook postInstall
'';
}

@ -4,11 +4,12 @@ stdenvNoCC.mkDerivation rec {
inherit (src) pname version;
src = texlive.pkgs.iwona;
dontUnpack = true;
installPhase = ''
runHook preInstall
install -Dm644 fonts/opentype/nowacki/iwona/*.otf -t $out/share/fonts/opentype
install -Dm644 $src/fonts/opentype/nowacki/iwona/*.otf -t $out/share/fonts/opentype
runHook postInstall
'';