Skip to content

Commit

Permalink
dejavu_fonts: make relative symlink (/cc #32912)
Browse files Browse the repository at this point in the history
to make hash of fixed-output derivation independent on non-standard $NIX_STORE_DIR

(cherry picked from commit 8a93532)
  • Loading branch information
volth authored and vcunat committed Dec 22, 2017
1 parent d85d144 commit 3d1a948
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkgs/data/fonts/dejavu-fonts/default.nix
Expand Up @@ -64,11 +64,11 @@ in stdenv.mkDerivation {
buildCommand = ''
mkdir -p $out/share/fonts/truetype
cp ${full-ttf}/share/fonts/truetype/*.ttf $out/share/fonts/truetype/
ln -s --force ${minimal}/share/fonts/truetype/DejaVuSans.ttf $out/share/fonts/truetype/DejaVuSans.ttf
ln -s --relative --force --target-directory=$out/share/fonts/truetype ${minimal}/share/fonts/truetype/DejaVuSans.ttf
'';
outputHashAlgo = "sha256";
outputHashMode = "recursive";
outputHash = "1nf0h15p8yvjx36syq1034i3hix99lm8p54iyjw8dpa19i9jfkmd";
outputHash = "15l93xm9mg2ziaxv4nqy2a4jaz54d05xf0hfz1h84bclzb882llh";
inherit meta;

passthru.minimal = minimal;
Expand Down

0 comments on commit 3d1a948

Please sign in to comment.