mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-02 07:31:26 +00:00
dejavu_fonts: "symlink-split" a single font file
See following commits for "why".
This commit is contained in:
parent
3bfb354145
commit
475124f78e
@ -13,6 +13,8 @@ stdenv.mkDerivation rec {
|
||||
sha256 = "1xknlg2h287dx34v2n5r33bpcl4biqf0cv7nak657rjki7s0k4bk";
|
||||
};
|
||||
|
||||
outputs = [ "out" "minimal" ];
|
||||
|
||||
buildFlags = "full-ttf";
|
||||
|
||||
preBuild = "patchShebangs scripts";
|
||||
@ -22,6 +24,10 @@ stdenv.mkDerivation rec {
|
||||
for i in $(find build -name '*.ttf'); do
|
||||
cp $i $out/share/fonts/truetype;
|
||||
done;
|
||||
'' + ''
|
||||
local fname=share/fonts/truetype/DejaVuSans.ttf
|
||||
moveToOutput "$fname" "$minimal"
|
||||
ln -s "$minimal/$fname" "$out/$fname"
|
||||
'';
|
||||
|
||||
meta = {
|
||||
|
Loading…
Reference in New Issue
Block a user