mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-05-04 10:17:01 +00:00
spleen: install otf font
This commit is contained in:
parent
637bb9fa98
commit
8ada475450
2 changed files with 7 additions and 6 deletions
|
@ -1,4 +1,4 @@
|
||||||
{ lib, fetchurl, mkfontdir }:
|
{ lib, fetchurl, mkfontscale }:
|
||||||
|
|
||||||
let
|
let
|
||||||
pname = "spleen";
|
pname = "spleen";
|
||||||
|
@ -11,14 +11,15 @@ in fetchurl {
|
||||||
recursiveHash = true;
|
recursiveHash = true;
|
||||||
postFetch = ''
|
postFetch = ''
|
||||||
tar xvf $downloadedFile --strip=1
|
tar xvf $downloadedFile --strip=1
|
||||||
d="$out/share/fonts/X11/misc/spleen"
|
d="$out/share/fonts/misc"
|
||||||
install -Dm644 *.{pcf.gz,psfu,bdf} -t $d
|
install -D -m 644 *.{pcf,bdf,otf} -t "$d"
|
||||||
|
install -D -m 644 *.psfu -t "$out/share/consolefonts"
|
||||||
install -m644 fonts.alias-spleen $d/fonts.alias
|
install -m644 fonts.alias-spleen $d/fonts.alias
|
||||||
|
|
||||||
# create fonts.dir so NixOS xorg module adds to fp
|
# create fonts.dir so NixOS xorg module adds to fp
|
||||||
${mkfontdir}/bin/mkfontdir $d
|
${mkfontscale}/bin/mkfontdir "$d"
|
||||||
'';
|
'';
|
||||||
sha256 = "0h9gj7syn87hl5rhwckih92r228zac6b1dvh3034caml8ad3fyla";
|
sha256 = "0x1xiw4gyfkyvwqg0f47rl92zq76d0c6jfncdnq8m2wwpxz9697b";
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "Monospaced bitmap fonts";
|
description = "Monospaced bitmap fonts";
|
||||||
|
|
|
@ -17897,7 +17897,7 @@ in
|
||||||
source-han-serif-simplified-chinese = sourceHanSerifPackages.simplified-chinese;
|
source-han-serif-simplified-chinese = sourceHanSerifPackages.simplified-chinese;
|
||||||
source-han-serif-traditional-chinese = sourceHanSerifPackages.traditional-chinese;
|
source-han-serif-traditional-chinese = sourceHanSerifPackages.traditional-chinese;
|
||||||
|
|
||||||
spleen = callPackage ../data/fonts/spleen { inherit (xorg) mkfontdir; };
|
spleen = callPackage ../data/fonts/spleen { inherit (buildPackages.xorg) mkfontscale; };
|
||||||
|
|
||||||
stilo-themes = callPackage ../data/themes/stilo { };
|
stilo-themes = callPackage ../data/themes/stilo { };
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue