treewide: convert 43 fonts to stdenvNoCC.mkDerivation

This commit is contained in:
Weijia Wang 2023-01-30 10:25:57 +01:00
parent 99f5676ba0
commit 7f42f28529
42 changed files with 631 additions and 473 deletions

View file

@ -1,21 +1,22 @@
{ lib, fetchFromGitHub }: { lib, stdenvNoCC, fetchFromGitHub }:
let stdenvNoCC.mkDerivation {
pname = "atkinson-hyperlegible"; pname = "atkinson-hyperlegible";
version = "unstable-2021-04-29"; version = "unstable-2021-04-29";
in fetchFromGitHub {
name = "${pname}-${version}";
owner = "googlefonts"; src = fetchFromGitHub {
repo = "atkinson-hyperlegible"; owner = "googlefonts";
rev = "1cb311624b2ddf88e9e37873999d165a8cd28b46"; repo = "atkinson-hyperlegible";
sha256 = "sha256-urSTqC3rfDRM8IMG+edwKEe7NPiTuDZph3heGHzLDks="; rev = "1cb311624b2ddf88e9e37873999d165a8cd28b46";
hash = "sha256-RN4m5gyY2OiPzRXgFVQ3pq6JdkPcMxV4fRlX2EK+gOM=";
};
postFetch = '' installPhase = ''
install -Dm644 -t $out/share/fonts/opentype $out/fonts/otf/* runHook preInstall
shopt -s extglob dotglob
rm -rf $out/!(share) install -Dm644 -t $out/share/fonts/opentype fonts/otf/*
shopt -u extglob dotglob
runHook postInstall
''; '';
meta = with lib; { meta = with lib; {

View file

@ -1,15 +1,23 @@
{ lib, fetchFromGitHub }: { lib, stdenvNoCC, fetchFromGitHub }:
fetchFromGitHub rec { stdenvNoCC.mkDerivation rec {
name = "aurulent-sans-0.1"; pname = "aurulent-sans";
owner = "deepfire"; version = "0.1";
repo = "hartke-aurulent-sans";
rev = name; src = fetchFromGitHub {
postFetch = '' owner = "deepfire";
mkdir -p $out/share/fonts repo = "hartke-aurulent-sans";
tar xf $downloadedFile -C $out/share/fonts --strip=1 rev = "${pname}-${version}";
hash = "sha256-M/duhgqxXZJq5su9FrsGjZdm+wtO5B5meoDomde+GwY=";
};
installPhase = ''
runHook preInstall
install -Dm644 *.otf -t $out/share/fonts
runHook postInstall
''; '';
sha256 = "1l60psfv9x0x9qx9vp1qnhmck7a7kks385m5ycrd3d91irz1j5li";
meta = { meta = {
description = "Aurulent Sans"; description = "Aurulent Sans";

View file

@ -1,25 +1,25 @@
{ lib, fetchFromGitHub }: { lib, stdenvNoCC, fetchFromGitHub }:
fetchFromGitHub rec { stdenvNoCC.mkDerivation rec {
pname = "b612"; pname = "b612";
version = "1.008"; version = "1.008";
owner = "polarsys"; src = fetchFromGitHub {
repo = "b612"; owner = "polarsys";
rev = version; repo = "b612";
rev = version;
hash = "sha256-uyBC8UNOwztCHXhR9XZuWDwrty0eClbo0E+gI1PmjEg=";
};
installPhase = ''
runHook preInstall
postFetch = ''
mkdir -p $out/share/fonts/truetype mkdir -p $out/share/fonts/truetype
mv fonts/ttf/*.ttf $out/share/fonts/truetype
mv $out/fonts/ttf/*.ttf $out/share/fonts/truetype runHook postInstall
shopt -s extglob dotglob
rm -rf $out/!(share)
shopt -u extglob dotglob
''; '';
hash = "sha256-aJ3XzWQauPsWwEDAHT2rD9a8RvLv1kqU3krFXprmypk=";
meta = with lib; { meta = with lib; {
homepage = "https://b612-font.com/"; homepage = "https://b612-font.com/";
description = "Highly legible font family for use on aircraft cockpit screens"; description = "Highly legible font family for use on aircraft cockpit screens";
@ -36,8 +36,8 @@ fetchFromGitHub rec {
variants of the font. This one, baptized B612 in reference to the variants of the font. This one, baptized B612 in reference to the
imaginary asteroid of the aviator SaintExupéry, benefited from a complete imaginary asteroid of the aviator SaintExupéry, benefited from a complete
hinting on all the characters. hinting on all the characters.
''; '';
license = with licenses; [ ofl epl10 bsd3 ] ; license = with licenses; [ ofl epl10 bsd3 ];
maintainers = with maintainers; [ leenaars ]; maintainers = with maintainers; [ leenaars ];
platforms = platforms.all; platforms = platforms.all;
}; };

View file

@ -1,19 +1,23 @@
{ lib, fetchFromGitHub }: { lib, stdenvNoCC, fetchFromGitHub }:
let stdenvNoCC.mkDerivation rec {
pname = "behdad-fonts"; pname = "behdad-fonts";
version = "0.0.3"; version = "0.0.3";
in fetchFromGitHub {
name = "${pname}-${version}";
owner = "font-store";
repo = "BehdadFont";
rev = "v${version}";
postFetch = '' src = fetchFromGitHub {
tar xf $downloadedFile --strip=1 owner = "font-store";
repo = "BehdadFont";
rev = "v${version}";
hash = "sha256-gKfzxo3/bCMKXl2d6SP07ahIiNrUyrk/SN5XLND2lWY=";
};
installPhase = ''
runHook preInstall
find . -name '*.ttf' -exec install -m444 -Dt $out/share/fonts/behrad-fonts {} \; find . -name '*.ttf' -exec install -m444 -Dt $out/share/fonts/behrad-fonts {} \;
runHook postInstall
''; '';
sha256 = "0c57232462cv1jrfn0m2bl7jzcfkacirrdd2qimrc8iqhkz0ajfz";
meta = with lib; { meta = with lib; {
homepage = "https://github.com/font-store/BehdadFont"; homepage = "https://github.com/font-store/BehdadFont";

View file

@ -1,19 +1,24 @@
{ lib, fetchFromGitHub }: { lib, stdenvNoCC, fetchFromGitHub }:
fetchFromGitHub rec { stdenvNoCC.mkDerivation rec {
name = "cabin-1.005"; pname = "cabin";
version = "1.005";
owner = "impallari"; src = fetchFromGitHub {
repo = "Cabin"; owner = "impallari";
rev = "982839c790e9dc57c343972aa34c51ed3b3677fd"; repo = "Cabin";
rev = "982839c790e9dc57c343972aa34c51ed3b3677fd";
hash = "sha256-9l4QcwCot340Bq41ER68HSZGQ9h0opyzgG3DG/fVZ5s=";
};
installPhase = ''
runHook preInstall
postFetch = ''
tar xf $downloadedFile --strip=1
install -m444 -Dt $out/share/fonts/opentype fonts/OTF/*.otf install -m444 -Dt $out/share/fonts/opentype fonts/OTF/*.otf
install -m444 -Dt $out/share/doc/${name} README.md FONTLOG.txt install -m444 -Dt $out/share/doc/${pname}-${version} README.md FONTLOG.txt
'';
sha256 = "1bl7h217m695jn4rbniialfk573aa44fslp2rjxnhkicakpcm44h"; runHook postInstall
'';
meta = with lib; { meta = with lib; {
description = "A humanist sans with 4 weights and true italics"; description = "A humanist sans with 4 weights and true italics";

View file

@ -1,23 +1,27 @@
{ lib, fetchFromGitHub }: { lib, stdenvNoCC, fetchFromGitHub }:
let stdenvNoCC.mkDerivation {
pname = "comic-mono-font";
version = "2020-12-28"; version = "2020-12-28";
in fetchFromGitHub {
name = "comic-mono-font-${version}";
owner = "dtinth"; src = fetchFromGitHub {
repo = "comic-mono-font"; owner = "dtinth";
rev = "9a96d04cdd2919964169192e7d9de5012ef66de4"; repo = "comic-mono-font";
rev = "9a96d04cdd2919964169192e7d9de5012ef66de4";
hash = "sha256-q8NxrluWuH23FfRlntIS0MDdl3TkkGE7umcU2plS6eU=";
};
installPhase = ''
runHook preInstall
postFetch = ''
mkdir -p $out/share/fonts mkdir -p $out/share/fonts
tar -z -f $downloadedFile --wildcards -x \*.ttf --one-top-level=$out/share/fonts cp *.ttf $out/share/fonts
mkdir -p $out/etc/fonts/conf.d mkdir -p $out/etc/fonts/conf.d
ln -s ${./comic-mono-weight.conf} $out/etc/fonts/conf.d/30-comic-mono.conf ln -s ${./comic-mono-weight.conf} $out/etc/fonts/conf.d/30-comic-mono.conf
'';
hash = "sha256-poMU+WfDZcsyWyFiiXKJ284X22CJlxQIzcJtApnIdAY="; runHook postInstall
'';
meta = with lib; { meta = with lib; {
description = "A legible monospace font that looks like Comic Sans"; description = "A legible monospace font that looks like Comic Sans";

View file

@ -1,19 +1,22 @@
{ lib, fetchFromGitHub }: { lib, stdenvNoCC, fetchFromGitHub }:
let stdenvNoCC.mkDerivation {
pname = "dancing-script"; pname = "dancing-script";
version = "2.0"; version = "2.0";
in fetchFromGitHub {
name = "${pname}-${version}";
owner = "impallari"; src = fetchFromGitHub {
repo = "DancingScript"; owner = "impallari";
rev = "f7f54bc1b8836601dae8696666bfacd306f77e34"; repo = "DancingScript";
sha256 = "dfFvh8h+oMhAQL9XKMrNr07VUkdQdxAsA8+q27KWWCA="; rev = "f7f54bc1b8836601dae8696666bfacd306f77e34";
hash = "sha256-B9oAZFPH3dG/Nt5FfKfFVJYtfUKGK0AXNkQHRC7IgdU=";
};
installPhase = ''
runHook preInstall
postFetch = ''
tar xf $downloadedFile --strip=1
install -m444 -Dt $out/share/fonts/truetype fonts/ttf/*.ttf install -m444 -Dt $out/share/fonts/truetype fonts/ttf/*.ttf
runHook postInstall
''; '';
meta = with lib; { meta = with lib; {

View file

@ -1,19 +1,24 @@
{ lib, fetchFromGitHub }: { lib, stdenvNoCC, fetchFromGitHub }:
fetchFromGitHub rec { stdenvNoCC.mkDerivation rec {
name = "dosis-1.007"; pname = "dosis";
version = "1.007";
owner = "impallari"; src = fetchFromGitHub {
repo = "Dosis"; owner = "impallari";
rev = "12df1e13e58768f20e0d48ff15651b703f9dd9dc"; repo = "Dosis";
rev = "12df1e13e58768f20e0d48ff15651b703f9dd9dc";
hash = "sha256-rZ49uNBlI+NWkiZykpyXzOonXlbVB6Vf6a/8A56Plj4=";
};
installPhase = ''
runHook preInstall
postFetch = ''
tar xf $downloadedFile --strip=1
find . -name '*.otf' -exec install -m444 -Dt $out/share/fonts/opentype {} \; find . -name '*.otf' -exec install -m444 -Dt $out/share/fonts/opentype {} \;
install -m444 -Dt $out/share/doc/${name} README.md FONTLOG.txt install -m444 -Dt $out/share/doc/${pname}-${version} README.md FONTLOG.txt
'';
sha256 = "0vz25w45i8flfvppymr5h83pa2n1r37da20v7691p44018fdsdny"; runHook postInstall
'';
meta = with lib; { meta = with lib; {
description = "A very simple, rounded, sans serif family"; description = "A very simple, rounded, sans serif family";

View file

@ -1,16 +1,23 @@
{ lib, fetchFromGitHub }: { lib, stdenvNoCC, fetchFromGitHub }:
fetchFromGitHub rec { stdenvNoCC.mkDerivation rec {
rev = "7e8f02dadcc23ba42b491b39e5bdf16e7b383031"; pname = "et-book";
name = "et-book-${builtins.substring 0 6 rev}"; version = "unstable-2015-10-05";
owner = "edwardtufte";
repo = "et-book"; src = fetchFromGitHub {
sha256 = "1bfb1l8k7fzgk2l8cikiyfn5x9m0fiwrnsbc1483p8w3qp58s5n2"; owner = "edwardtufte";
repo = pname;
rev = "7e8f02dadcc23ba42b491b39e5bdf16e7b383031";
hash = "sha256-B6ryC9ibNop08TJC/w9LSHHwqV/81EezXsTUJFq8xpo=";
};
installPhase = ''
runHook preInstall
postFetch = ''
tar -xzf $downloadedFile
mkdir -p $out/share/fonts/truetype mkdir -p $out/share/fonts/truetype
cp -t $out/share/fonts/truetype et-book-${rev}/source/4-ttf/*.ttf cp -t $out/share/fonts/truetype source/4-ttf/*.ttf
runHook postInstall
''; '';
meta = with lib; { meta = with lib; {

View file

@ -1,21 +1,24 @@
{ lib, fetchFromGitHub }: { lib, stdenvNoCC, fetchFromGitHub }:
let stdenvNoCC.mkDerivation rec {
pname = "fira";
version = "4.202"; version = "4.202";
in fetchFromGitHub {
name = "fira-${version}";
owner = "mozilla"; src = fetchFromGitHub {
repo = "Fira"; owner = "mozilla";
rev = version; repo = "Fira";
rev = version;
hash = "sha256-HLReqgL0PXF5vOpwLN0GiRwnzkjGkEVEyOEV2Z4R0oQ=";
};
installPhase = ''
runHook preInstall
postFetch = ''
tar xf $downloadedFile --strip=1
mkdir -p $out/share/fonts/opentype mkdir -p $out/share/fonts/opentype
cp otf/*.otf $out/share/fonts/opentype cp otf/*.otf $out/share/fonts/opentype
'';
sha256 = "1iwxbp7kw5kghh5nbycb05zby7p2ib61mywva3h6giv2wd4lpxnz"; runHook postInstall
'';
meta = with lib; { meta = with lib; {
homepage = "https://mozilla.github.io/Fira/"; homepage = "https://mozilla.github.io/Fira/";

View file

@ -1,19 +1,23 @@
{ lib, fetchFromGitHub }: { lib, stdenvNoCC, fetchFromGitHub }:
let stdenvNoCC.mkDerivation rec {
pname = "gandom-fonts"; pname = "gandom-fonts";
version = "0.8"; version = "0.8";
in fetchFromGitHub {
name = "${pname}-${version}";
owner = "rastikerdar";
repo = "gandom-font";
rev = "v${version}";
postFetch = '' src = fetchFromGitHub {
tar xf $downloadedFile --strip=1 owner = "rastikerdar";
repo = "gandom-font";
rev = "v${version}";
hash = "sha256-nez8T0TtRLyXxIIR69LrVGde5ThCvA0fLXkYLyYQRV8=";
};
installPhase = ''
runHook preInstall
find . -name '*.ttf' -exec install -m444 -Dt $out/share/fonts/gandom-fonts {} \; find . -name '*.ttf' -exec install -m444 -Dt $out/share/fonts/gandom-fonts {} \;
runHook postInstall
''; '';
sha256 = "sha256-EDS3wwKwe2BIcOCxu7DxkVLCoEoTPP31k5ID51lqn3M=";
meta = with lib; { meta = with lib; {
homepage = "https://github.com/rastikerdar/gandom-font"; homepage = "https://github.com/rastikerdar/gandom-font";

View file

@ -1,18 +1,25 @@
{ lib, fetchFromGitHub }: { lib, stdenvNoCC, fetchFromGitHub }:
let stdenvNoCC.mkDerivation {
version = "unstable-2018-08-12"; pname = "gelasio";
in fetchFromGitHub { version = "unstable-2022-06-09";
name = "gelasio-${version}";
owner = "SorkinType"; src = fetchFromGitHub {
repo = "Gelasio"; owner = "SorkinType";
rev = "5bced461d54bcf8e900bb3ba69455af35b0d2ff1"; repo = "Gelasio";
sha256 = "0dfskz2vpwsmd88rxqsxf0f01g4f2hm6073afcm424x5gc297n39"; rev = "a75c6d30a35f74cdbaea1813bdbcdb64bb11d3d5";
hash = "sha256-ncm0lSDPPPREdxTx3dGl6OGBn4FGAjFTlQpA6oDCdMI=";
};
dontBuild = true;
installPhase = ''
runHook preInstall
postFetch = ''
tar xf $downloadedFile --strip=1
mkdir -p $out/share/fonts/truetype mkdir -p $out/share/fonts/truetype
cp *.ttf $out/share/fonts/truetype/ cp fonts/ttf/*.ttf $out/share/fonts/truetype/
runHook postInstall
''; '';
meta = with lib; { meta = with lib; {

View file

@ -1,19 +1,23 @@
{ lib, fetchFromGitHub }: { lib, stdenvNoCC, fetchFromGitHub }:
let stdenvNoCC.mkDerivation {
version = "20180721"; pname = "ia-writer-duospace";
in fetchFromGitHub { version = "unstable-2018-07-21";
name = "ia-writer-duospace-${version}";
owner = "iaolo"; src = fetchFromGitHub {
repo = "iA-Fonts"; owner = "iaolo";
rev = "55edf60f544078ab1e14987bc67e9029a200e0eb"; repo = "iA-Fonts";
sha256 = "0932lcxf861vb3hz52z1xj8r99ag9sdyqsnq9brv7gc4kp2l339c"; rev = "55edf60f544078ab1e14987bc67e9029a200e0eb";
hash = "sha256-/ifzOScILLuFkjFIgpy0ArCcelgealbpypKvZ46xApU=";
};
installPhase = ''
runHook preInstall
postFetch = ''
tar --strip-components=1 -xzvf $downloadedFile
mkdir -p $out/share/fonts/opentype mkdir -p $out/share/fonts/opentype
cp "iA Writer Duospace/OTF (Mac)/"*.otf $out/share/fonts/opentype/ cp "iA Writer Duospace/OTF (Mac)/"*.otf $out/share/fonts/opentype/
runHook postInstall
''; '';
meta = with lib; { meta = with lib; {

View file

@ -1,20 +1,24 @@
{ lib, fetchFromGitHub }: { lib, stdenvNoCC, fetchFromGitHub }:
let stdenvNoCC.mkDerivation rec {
pname = "inriafonts"; pname = "inriafonts";
version = "1.200"; version = "1.200";
in fetchFromGitHub {
name = "${pname}-${version}";
owner = "BlackFoundry";
repo = "InriaFonts";
rev = "v${version}";
postFetch = '' src = fetchFromGitHub {
tar xf $downloadedFile --strip=1 owner = "BlackFoundry";
repo = "InriaFonts";
rev = "v${version}";
hash = "sha256-CMKkwGuUEVYavnFi15FCk7Xloyk97w+LhAZ6mpIv5xg=";
};
installPhase = ''
runHook preInstall
install -m444 -Dt $out/share/fonts/truetype fonts/*/TTF/*.ttf install -m444 -Dt $out/share/fonts/truetype fonts/*/TTF/*.ttf
install -m444 -Dt $out/share/fonts/opentype fonts/*/OTF/*.otf install -m444 -Dt $out/share/fonts/opentype fonts/*/OTF/*.otf
runHook postInstall
''; '';
sha256 = "0wrwcyycyzvgvgnlmwi1ncdvwb8f6bbclynd1105rsyxgrz5dd70";
meta = with lib; { meta = with lib; {
homepage = "https://black-foundry.com/work/inria"; homepage = "https://black-foundry.com/work/inria";

View file

@ -1,19 +1,23 @@
{ lib, fetchFromGitHub }: { lib, stdenvNoCC, fetchFromGitHub }:
let stdenvNoCC.mkDerivation rec {
pname = "ir-standard-fonts"; pname = "ir-standard-fonts";
version = "unstable-2017-01-21"; version = "20170121";
in fetchFromGitHub {
name = "${pname}-${version}"; src = fetchFromGitHub {
owner = "morealaz"; owner = "molaeiali";
repo = pname; repo = pname;
rev = "d36727d6c38c23c01b3074565667a2fe231fe18f"; rev = version;
hash = "sha256-o1d8SBX3nf7g6Gh4OP+JRS+LNrHTQOIiHhW3VNCkDV0=";
};
installPhase = ''
runHook preInstall
postFetch = ''
tar xf $downloadedFile --strip=1
find . -name '*.ttf' -exec install -m444 -Dt $out/share/fonts/ir-standard-fonts {} \; find . -name '*.ttf' -exec install -m444 -Dt $out/share/fonts/ir-standard-fonts {} \;
runHook postInstall
''; '';
sha256 = "0i2vzhwk77pm6fx5z5gxl026z9f35rhh3cvl003mry2lcg1x5rhp";
meta = with lib; { meta = with lib; {
homepage = "https://github.com/morealaz/ir-standard-fonts"; homepage = "https://github.com/morealaz/ir-standard-fonts";

View file

@ -1,23 +1,25 @@
{ lib, fetchFromGitHub }: { lib, stdenvNoCC, fetchFromGitHub }:
let stdenvNoCC.mkDerivation {
pname = "junicode"; pname = "junicode";
version = "1.003"; version = "1.003";
in
fetchFromGitHub {
name = "${pname}-${version}";
owner = "psb1558"; src = fetchFromGitHub {
repo = "Junicode-font"; owner = "psb1558";
rev = "55d816d91a5e19795d9b66edec478379ee2b9ddb"; repo = "Junicode-font";
rev = "55d816d91a5e19795d9b66edec478379ee2b9ddb";
hash = "sha256-eTiMgI8prnpR4H6sqKRaB3Gcnt4C5QWZalRajWW49G4=";
};
installPhase = ''
runHook preInstall
postFetch = ''
local out_ttf=$out/share/fonts/junicode-ttf local out_ttf=$out/share/fonts/junicode-ttf
mkdir -p $out_ttf mkdir -p $out_ttf
tar -f $downloadedFile -C $out_ttf --wildcards -x '*.ttf' --strip=2 cp legacy/*.ttf $out_ttf
'';
sha256 = "1v334gljmidh58kmrarz5pf348b0ac7vh25f1xs3gyvn78khh5nw"; runHook postInstall
'';
meta = { meta = {
homepage = "https://github.com/psb1558/Junicode-font"; homepage = "https://github.com/psb1558/Junicode-font";

View file

@ -1,22 +1,24 @@
{ lib, fetchFromGitHub }: { lib, stdenvNoCC, fetchFromGitHub }:
let stdenvNoCC.mkDerivation {
pname = "kreative-square-fonts"; pname = "kreative-square-fonts";
version = "unstable-2021-01-29"; version = "unstable-2021-01-29";
in
fetchFromGitHub {
name = "${pname}-${version}";
owner = "kreativekorp"; src = fetchFromGitHub {
repo = "open-relay"; owner = "kreativekorp";
rev = "084f05af3602307499981651eca56851bec01fca"; repo = "open-relay";
rev = "084f05af3602307499981651eca56851bec01fca";
hash = "sha256-+ihosENczaGal3BGDIaJ/de0pf8txdtelSYMxPok6ww=";
};
installPhase = ''
runHook preInstall
postFetch = ''
tar xf $downloadedFile --strip=1
install -Dm444 -t $out/share/fonts/truetype/ KreativeSquare/KreativeSquare.ttf install -Dm444 -t $out/share/fonts/truetype/ KreativeSquare/KreativeSquare.ttf
install -Dm444 -t $out/share/fonts/truetype/ KreativeSquare/KreativeSquareSM.ttf install -Dm444 -t $out/share/fonts/truetype/ KreativeSquare/KreativeSquareSM.ttf
runHook postInstall
''; '';
sha256 = "15vvbbzv6b3jh7lxg77viycdd7yf3y8lxy54vs3rsrsxwncg0pak";
meta = with lib; { meta = with lib; {
description = "Fullwidth scalable monospace font designed specifically to support pseudographics, semigraphics, and private use characters"; description = "Fullwidth scalable monospace font designed specifically to support pseudographics, semigraphics, and private use characters";

View file

@ -1,20 +1,24 @@
{ lib, fetchFromGitHub }: { lib, stdenvNoCC, fetchFromGitHub }:
let stdenvNoCC.mkDerivation {
pname = "lalezar-fonts"; pname = "lalezar-fonts";
version = "unstable-2017-02-28"; version = "unstable-2017-02-28";
in fetchFromGitHub {
name = "${pname}-${version}";
owner = "BornaIz";
repo = "Lalezar";
rev = "238701c4241f207e92515f845a199be9131c1109";
postFetch = '' src = fetchFromGitHub {
tar xf $downloadedFile --strip=1 owner = "BornaIz";
repo = "Lalezar";
rev = "238701c4241f207e92515f845a199be9131c1109";
hash = "sha256-95z58ABTx53aREXRpj9xgclX9kuGiQiiKBwqwnF6f8g=";
};
installPhase = ''
runHook preInstall
mkdir -p $out/share/fonts/lalezar-fonts mkdir -p $out/share/fonts/lalezar-fonts
cp -v $( find . -name '*.ttf') $out/share/fonts/lalezar-fonts cp -v $( find . -name '*.ttf') $out/share/fonts/lalezar-fonts
runHook postInstall
''; '';
sha256 = "0jmwhr2dqgj3vn0v26jh6c0id6n3wd6as3bq39xa870zlk7v307b";
meta = with lib; { meta = with lib; {
homepage = "https://github.com/BornaIz/Lalezar"; homepage = "https://github.com/BornaIz/Lalezar";

View file

@ -1,19 +1,24 @@
{ lib, fetchFromGitHub }: { lib, stdenvNoCC, fetchFromGitHub }:
fetchFromGitHub rec { stdenvNoCC.mkDerivation rec {
name = "libre-baskerville-1.000"; pname = "libre-baskerville";
version = "1.000";
owner = "impallari"; src = fetchFromGitHub {
repo = "Libre-Baskerville"; owner = "impallari";
rev = "2fba7c8e0a8f53f86efd3d81bc4c63674b0c613f"; repo = "Libre-Baskerville";
rev = "2fba7c8e0a8f53f86efd3d81bc4c63674b0c613f";
hash = "sha256-1EXi1hxFpc7pFsLbEj1xs9LqjeIf3XBol/8HdKNROUU=";
};
installPhase = ''
runHook preInstall
postFetch = ''
tar xf $downloadedFile --strip=1
install -m444 -Dt $out/share/fonts/truetype *.ttf install -m444 -Dt $out/share/fonts/truetype *.ttf
install -m444 -Dt $out/share/doc/${name} README.md FONTLOG.txt install -m444 -Dt $out/share/doc/${pname}-${version} README.md FONTLOG.txt
'';
sha256 = "1kpji85d1mgwq8b4fh1isznrhsrv32la3wf058rwjmhx5a3l7yaj"; runHook postInstall
'';
meta = with lib; { meta = with lib; {
description = "A webfont family optimized for body text"; description = "A webfont family optimized for body text";

View file

@ -1,19 +1,24 @@
{ lib, fetchFromGitHub }: { lib, stdenvNoCC, fetchFromGitHub }:
fetchFromGitHub rec { stdenvNoCC.mkDerivation rec {
name = "libre-bodoni-2.000"; pname = "libre-bodoni";
version = "2.000";
owner = "impallari"; src = fetchFromGitHub {
repo = "Libre-Bodoni"; owner = "impallari";
rev = "995a40e8d6b95411d660cbc5bb3f726ffd080c7d"; repo = "Libre-Bodoni";
rev = "995a40e8d6b95411d660cbc5bb3f726ffd080c7d";
hash = "sha256-yfqVeT/JiAT+fsqkXUxqlz4sEEFwEJUdvFTAzuqejtk=";
};
installPhase = ''
runHook preInstall
postFetch = ''
tar xf $downloadedFile --strip=1
install -m444 -Dt $out/share/fonts/opentype */v2000\ -\ initial\ glyphs\ migration/OTF/*.otf install -m444 -Dt $out/share/fonts/opentype */v2000\ -\ initial\ glyphs\ migration/OTF/*.otf
install -m444 -Dt $out/share/doc/${name} README.md FONTLOG.txt install -m444 -Dt $out/share/doc/${pname}-${version} README.md FONTLOG.txt
'';
sha256 = "0my0i5a7f0d27m6dcdirjmlcnswqqfp8gl3ccxa5f2wkn3qlzkvz"; runHook postInstall
'';
meta = with lib; { meta = with lib; {
description = "Bodoni fonts adapted for today's web requirements"; description = "Bodoni fonts adapted for today's web requirements";

View file

@ -1,19 +1,24 @@
{ lib, fetchFromGitHub }: { lib, stdenvNoCC, fetchFromGitHub }:
fetchFromGitHub rec { stdenvNoCC.mkDerivation rec {
name = "libre-franklin-1.014"; pname = "libre-franklin";
version = "1.014";
owner = "impallari"; src = fetchFromGitHub {
repo = "Libre-Franklin"; owner = "impallari";
rev = "006293f34c47bd752fdcf91807510bc3f91a0bd3"; repo = "Libre-Franklin";
rev = "006293f34c47bd752fdcf91807510bc3f91a0bd3";
hash = "sha256-GR1KHiQ1lTOmU8eAPR2pxUlMpWiW2EDMG78VDjELxDU=";
};
installPhase = ''
runHook preInstall
postFetch = ''
tar xf $downloadedFile --strip=1
install -m444 -Dt $out/share/fonts/opentype */OTF/*.otf install -m444 -Dt $out/share/fonts/opentype */OTF/*.otf
install -m444 -Dt $out/share/doc/${name} README.md FONTLOG.txt install -m444 -Dt $out/share/doc/${pname}-${version} README.md FONTLOG.txt
'';
sha256 = "0aq280m01pbirkzga432340aknf2m5ggalw0yddf40sqz7falykf"; runHook postInstall
'';
meta = with lib; { meta = with lib; {
description = "A reinterpretation and expansion based on the 1912 Morris Fuller Bentons classic."; description = "A reinterpretation and expansion based on the 1912 Morris Fuller Bentons classic.";

View file

@ -1,18 +1,24 @@
{ lib, fetchFromGitHub }: { lib, stdenvNoCC, fetchFromGitHub }:
let stdenvNoCC.mkDerivation rec {
pname = "manrope"; pname = "manrope";
version = "3"; version = "3";
in fetchFromGitHub {
name = "${pname}-${version}"; src = fetchFromGitHub {
owner = "sharanda"; owner = "sharanda";
repo = pname; repo = pname;
rev = "3bd68c0c325861e32704470a90dfc1868a5c37e9"; rev = "3bd68c0c325861e32704470a90dfc1868a5c37e9";
sha256 = "1h4chkfbp75hrrqqarf28ld4yb7hfrr7q4w5yz96ivg94lbwlnld"; hash = "sha256-Gm7mUD/Ud2Rf8mA3jwUL7RE8clCmb6SETOskuj6r1sw=";
postFetch = '' };
tar xf $downloadedFile --strip=1
installPhase = ''
runHook preInstall
install -Dm644 -t $out/share/fonts/opentype "desktop font"/* install -Dm644 -t $out/share/fonts/opentype "desktop font"/*
runHook postInstall
''; '';
meta = with lib; { meta = with lib; {
description = "Open-source modern sans-serif font family"; description = "Open-source modern sans-serif font family";
homepage = "https://github.com/sharanda/manrope"; homepage = "https://github.com/sharanda/manrope";

View file

@ -1,20 +1,24 @@
{ lib, fetchFromGitHub }: { lib, stdenvNoCC, fetchFromGitHub }:
let stdenvNoCC.mkDerivation rec {
pname = "material-icons";
version = "3.0.1"; version = "3.0.1";
in fetchFromGitHub {
name = "material-icons-${version}";
owner = "google"; src = fetchFromGitHub {
repo = "material-design-icons"; owner = "google";
rev = version; repo = "material-design-icons";
rev = version;
hash = "sha256-4FphNJCsaLWzlVR4TmXnDBid0EVj39fkeoh5j1leBZ8=";
};
installPhase = ''
runHook preInstall
postFetch = ''
tar xf $downloadedFile --strip=1
mkdir -p $out/share/fonts/truetype mkdir -p $out/share/fonts/truetype
cp iconfont/*.ttf $out/share/fonts/truetype cp iconfont/*.ttf $out/share/fonts/truetype
runHook postInstall
''; '';
sha256 = "1syy6v941lb8nqxhdf7mfx28v05lwrfnq53r3c1ym13x05l9kchp";
meta = with lib; { meta = with lib; {
description = "System status icons by Google, featuring material design"; description = "System status icons by Google, featuring material design";

View file

@ -1,25 +1,27 @@
{ lib, fetchFromGitHub }: { lib, stdenvNoCC, fetchFromGitHub }:
fetchFromGitHub rec { stdenvNoCC.mkDerivation rec {
pname = "montserrat"; pname = "montserrat";
version = "7.222"; version = "7.222";
owner = "JulietaUla"; src = fetchFromGitHub {
repo = pname; owner = "JulietaUla";
rev = "v${version}"; repo = pname;
sha256 = "sha256-MeNnc1e5X5f0JyaLY6fX22rytHkvL++eM2ygsdlGMv0="; rev = "v${version}";
hash = "sha256-eVCRn2OtNI5NuYZBQy06HKnMMXhPPnFxI8m8kguZjg0=";
};
installPhase = ''
runHook preInstall
postFetch = ''
mkdir -p $out/share/fonts/{otf,ttf,woff,woff2} mkdir -p $out/share/fonts/{otf,ttf,woff,woff2}
mv $out/fonts/otf/*.otf $out/share/fonts/otf mv fonts/otf/*.otf $out/share/fonts/otf
mv $out/fonts/ttf/*.ttf $out/share/fonts/ttf mv fonts/ttf/*.ttf $out/share/fonts/ttf
mv $out/fonts/webfonts/*.woff $out/share/fonts/woff mv fonts/webfonts/*.woff $out/share/fonts/woff
mv $out/fonts/webfonts/*.woff2 $out/share/fonts/woff2 mv fonts/webfonts/*.woff2 $out/share/fonts/woff2
shopt -s extglob dotglob runHook postInstall
rm -rf $out/!(share)
shopt -u extglob dotglob
''; '';
meta = with lib; { meta = with lib; {

View file

@ -1,18 +1,24 @@
{ lib, fetchFromGitHub }: { lib, stdenvNoCC, fetchFromGitHub }:
fetchFromGitHub { stdenvNoCC.mkDerivation {
name = "myrica-2.011.20160403"; pname = "myrica";
version = "2.011.20160403";
owner = "tomokuni"; src = fetchFromGitHub {
repo = "Myrica"; owner = "tomokuni";
# commit does not exist on any branch on the target repository repo = "Myrica";
rev = "b737107723bfddd917210f979ccc32ab3eb6dc20"; # commit does not exist on any branch on the target repository
sha256 = "187rklcibbkai6m08173ca99qn8v7xpdfdv0izpymmavj85axm12"; rev = "b737107723bfddd917210f979ccc32ab3eb6dc20";
hash = "sha256-kx+adbN2DsO81KJFt+FGAPZN+1NpE9xiagKZ4KyaJV0=";
};
installPhase = ''
runHook preInstall
postFetch = ''
tar --strip-components=1 -xzvf $downloadedFile
mkdir -p $out/share/fonts/truetype mkdir -p $out/share/fonts/truetype
cp product/*.TTC $out/share/fonts/truetype cp product/*.TTC $out/share/fonts/truetype
runHook postInstall
''; '';
meta = with lib; { meta = with lib; {

View file

@ -1,19 +1,23 @@
{ lib, fetchFromGitHub }: { lib, stdenvNoCC, fetchFromGitHub }:
let stdenvNoCC.mkDerivation rec {
pname = "nahid-fonts"; pname = "nahid-fonts";
version = "0.3.0"; version = "0.3.0";
in fetchFromGitHub {
name = "${pname}-${version}";
owner = "rastikerdar";
repo = "nahid-font";
rev = "v${version}";
postFetch = '' src = fetchFromGitHub {
tar xf $downloadedFile --strip=1 owner = "rastikerdar";
repo = "nahid-font";
rev = "v${version}";
hash = "sha256-r8/W0/pJV6OX954spIITvW7M6lIbZRpbsvEHErnXglg=";
};
installPhase = ''
runHook preInstall
find . -name '*.ttf' -exec install -m444 -Dt $out/share/fonts/nahid-fonts {} \; find . -name '*.ttf' -exec install -m444 -Dt $out/share/fonts/nahid-fonts {} \;
runHook postInstall
''; '';
sha256 = "0df169sibq14j2mj727sq86c00jm1nz8565v85hkvh4zgz2plb7c";
meta = with lib; { meta = with lib; {
homepage = "https://github.com/rastikerdar/nahid-font"; homepage = "https://github.com/rastikerdar/nahid-font";

View file

@ -1,19 +1,23 @@
{ lib, fetchFromGitHub }: { lib, stdenvNoCC, fetchFromGitHub }:
let stdenvNoCC.mkDerivation rec {
pname = "nika-fonts"; pname = "nika-fonts";
version = "1.0.0"; version = "1.0.0";
in fetchFromGitHub {
name = "${pname}-${version}";
owner = "font-store";
repo = "NikaFont";
rev = "v${version}";
postFetch = '' src = fetchFromGitHub {
tar xf $downloadedFile --strip=1 owner = "font-store";
repo = "NikaFont";
rev = "v${version}";
hash = "sha256-jDemm8IyjhoCOg4Bfsp0tzUR7m+JaswL5d7Kug+asJk=";
};
installPhase = ''
runHook preInstall
find . -name '*.ttf' -exec install -m444 -Dt $out/share/fonts/nika-fonts {} \; find . -name '*.ttf' -exec install -m444 -Dt $out/share/fonts/nika-fonts {} \;
runHook postInstall
''; '';
sha256 = "1x34b2dqn1dymi1vmj5vrjcy2z8s0f3rr6cniyrz85plvid6x40i";
meta = with lib; { meta = with lib; {
homepage = "https://github.com/font-store/NikaFont/"; homepage = "https://github.com/font-store/NikaFont/";

View file

@ -1,21 +1,24 @@
{ lib, fetchFromGitHub }: { lib, stdenvNoCC, fetchFromGitHub }:
let stdenvNoCC.mkDerivation rec {
pname = "office-code-pro"; pname = "office-code-pro";
version = "1.004"; version = "1.004";
in fetchFromGitHub rec {
name = "${pname}-${version}";
owner = "nathco"; src = fetchFromGitHub {
repo = "Office-Code-Pro"; owner = "nathco";
rev = version; repo = "Office-Code-Pro";
rev = version;
hash = "sha256-qzKTXYswkithZUJT0a3IifCq4RJFeKciZAPhYr2U1X4=";
};
postFetch = '' installPhase = ''
tar xf $downloadedFile --strip=1 runHook preInstall
install -m644 -Dt $out/share/doc/${name} README.md
install -m644 -Dt $out/share/doc/${pname}-${version} README.md
install -m444 -Dt $out/share/fonts/opentype 'Fonts/Office Code Pro/OTF/'*.otf 'Fonts/Office Code Pro D/OTF/'*.otf install -m444 -Dt $out/share/fonts/opentype 'Fonts/Office Code Pro/OTF/'*.otf 'Fonts/Office Code Pro D/OTF/'*.otf
runHook postInstall
''; '';
sha256 = "1bagwcaicn6q8qkqazz6wb3x30y4apmkga0mkv8fh6890hfhywr9";
meta = with lib; { meta = with lib; {
description = "A customized version of Source Code Pro"; description = "A customized version of Source Code Pro";

View file

@ -1,42 +1,45 @@
{ lib, fetchFromGitHub }: { lib, stdenvNoCC, fetchFromGitHub }:
let stdenvNoCC.mkDerivation {
pname = "orbitron";
version = "20110526"; version = "20110526";
in fetchFromGitHub {
name = "orbitron-${version}";
owner = "theleagueof"; src = fetchFromGitHub {
repo = "orbitron"; owner = "theleagueof";
rev = "13e6a52"; repo = "orbitron";
rev = "13e6a52";
hash = "sha256-zjNPVrDUxcQbrsg1/8fFa6Wenu1yuG/XDfKA7NVZ0rA=";
};
installPhase = ''
runHook preInstall
postFetch = ''
tar xf $downloadedFile --strip=1
install -m444 -Dt $out/share/fonts/opentype/orbitron *.otf install -m444 -Dt $out/share/fonts/opentype/orbitron *.otf
install -m444 -Dt $out/share/fonts/ttf/orbitron *.ttf install -m444 -Dt $out/share/fonts/ttf/orbitron *.ttf
'';
sha256 = "1y9yzvpqs2v3ssnqk2iiglrh8amgsscnk8vmfgnqgqi9f4dhdvnv"; runHook postInstall
'';
meta = with lib; { meta = with lib; {
homepage = "https://www.theleagueofmoveabletype.com/orbitron"; homepage = "https://www.theleagueofmoveabletype.com/orbitron";
downloadPage = "https://www.theleagueofmoveabletype.com/orbitron/download"; downloadPage = "https://www.theleagueofmoveabletype.com/orbitron/download";
description = "Geometric sans-serif for display purposes by Matt McInerney"; description = "Geometric sans-serif for display purposes by Matt McInerney";
longDescription = '' longDescription = ''
Orbitron is a geometric sans-serif typeface intended for display Orbitron is a geometric sans-serif typeface intended for display
purposes. It features four weights (light, medium, bold, and purposes. It features four weights (light, medium, bold, and
black), a stylistic alternative, small caps, and a ton of black), a stylistic alternative, small caps, and a ton of
alternate glyphs. alternate glyphs.
Orbitron was designed so that graphic designers in the future Orbitron was designed so that graphic designers in the future
will have some alternative to typefaces like Eurostile or Bank will have some alternative to typefaces like Eurostile or Bank
Gothic. If youve ever seen a futuristic sci-fi movie, you have Gothic. If youve ever seen a futuristic sci-fi movie, you have
may noticed that all other fonts have been lost or destroyed in may noticed that all other fonts have been lost or destroyed in
the apocalypse that led humans to flee earth. Only those very few the apocalypse that led humans to flee earth. Only those very few
geometric typefaces have survived to be used on spaceship geometric typefaces have survived to be used on spaceship
exteriors, space station signage, monopolistic corporate exteriors, space station signage, monopolistic corporate
branding, uniforms featuring aerodynamic shoulder pads, etc. Of branding, uniforms featuring aerodynamic shoulder pads, etc. Of
course Orbitron could also be used on the posters for the movies course Orbitron could also be used on the posters for the movies
portraying this inevitable future. portraying this inevitable future.
''; '';
license = licenses.ofl; license = licenses.ofl;
platforms = platforms.all; platforms = platforms.all;

View file

@ -1,19 +1,24 @@
{ lib, fetchFromGitHub }: { lib, stdenvNoCC, fetchFromGitHub }:
fetchFromGitHub { stdenvNoCC.mkDerivation rec {
name = "oxygenfonts-20160824"; pname = "oxygenfonts";
version = "20160824";
owner = "vernnobile"; src = fetchFromGitHub {
repo = "oxygenFont"; owner = "vernnobile";
rev = "62db0ebe3488c936406685485071a54e3d18473b"; repo = "oxygenFont";
rev = "62db0ebe3488c936406685485071a54e3d18473b";
hash = "sha256-0LKq8nChkDAb6U1sOUyga/DvzpDmIjoRn+2PB9rok4w=";
};
installPhase = ''
runHook preInstall
postFetch = ''
tar xf $downloadedFile --strip=1
mkdir -p $out/share/fonts/truetype mkdir -p $out/share/fonts/truetype
cp */Oxygen-Sans.ttf */Oxygen-Sans-Bold.ttf */OxygenMono-Regular.ttf $out/share/fonts/truetype cp */Oxygen-Sans.ttf */Oxygen-Sans-Bold.ttf */OxygenMono-Regular.ttf $out/share/fonts/truetype
'';
sha256 = "17m86p1s7a7d90zqjsr46h5bpmas4vxsgj7kd0j5c8cb7lw92jyf"; runHook postInstall
'';
meta = with lib; { meta = with lib; {
description = "Desktop/gui font for integrated use with the KDE desktop"; description = "Desktop/gui font for integrated use with the KDE desktop";

View file

@ -1,20 +1,23 @@
{ lib, fetchFromGitHub }: { lib, stdenvNoCC, fetchFromGitHub }:
let stdenvNoCC.mkDerivation rec {
pname = "parastoo-fonts"; pname = "parastoo-fonts";
version = "2.0.1"; version = "2.0.1";
in fetchFromGitHub {
name = "${pname}-${version}";
owner = "rastikerdar"; src = fetchFromGitHub {
repo = "parastoo-font"; owner = "rastikerdar";
rev = "v${version}"; repo = "parastoo-font";
rev = "v${version}";
hash = "sha256-E94B9R2h227D49dscCBsprmb7w0GrQ+2tWOWRf8FH30=";
};
installPhase = ''
runHook preInstall
postFetch = ''
tar xf $downloadedFile --strip=1
find . -name '*.ttf' -exec install -m444 -Dt $out/share/fonts/parastoo-fonts {} \; find . -name '*.ttf' -exec install -m444 -Dt $out/share/fonts/parastoo-fonts {} \;
runHook postInstall
''; '';
sha256 = "sha256-4smobLS43DB7ISmbWDWX0IrtaeiyXpi1QpAiL8NyXoQ=";
meta = with lib; { meta = with lib; {
homepage = "https://github.com/rastikerdar/parastoo-font"; homepage = "https://github.com/rastikerdar/parastoo-font";

View file

@ -1,22 +1,27 @@
{ lib, fetchFromGitHub }: { lib, stdenvNoCC, fetchFromGitHub }:
fetchFromGitHub { stdenvNoCC.mkDerivation {
name = "powerline-fonts-2018-11-11"; pname = "powerline-fonts";
version = "unstable-2018-11-11";
owner = "powerline"; src = fetchFromGitHub {
repo = "fonts"; owner = "powerline";
rev = "e80e3eba9091dac0655a0a77472e10f53e754bb0"; repo = "fonts";
rev = "e80e3eba9091dac0655a0a77472e10f53e754bb0";
hash = "sha256-GGfON6Z/0czCUAGxnqtndgDnaZGONFTU9/Hu4BGDHlk=";
};
installPhase = ''
runHook preInstall
postFetch = ''
tar xf $downloadedFile --strip=1
find . -name '*.otf' -exec install -Dt $out/share/fonts/opentype {} \; find . -name '*.otf' -exec install -Dt $out/share/fonts/opentype {} \;
find . -name '*.ttf' -exec install -Dt $out/share/fonts/truetype {} \; find . -name '*.ttf' -exec install -Dt $out/share/fonts/truetype {} \;
find . -name '*.bdf' -exec install -Dt $out/share/fonts/bdf {} \; find . -name '*.bdf' -exec install -Dt $out/share/fonts/bdf {} \;
find . -name '*.pcf.gz' -exec install -Dt $out/share/fonts/pcf {} \; find . -name '*.pcf.gz' -exec install -Dt $out/share/fonts/pcf {} \;
find . -name '*.psf.gz' -exec install -Dt $out/share/consolefonts {} \; find . -name '*.psf.gz' -exec install -Dt $out/share/consolefonts {} \;
'';
sha256 = "0r8p4z3db17f5p8jr7sv80nglmjxhg83ncfvwg1dszldswr0dhvr"; runHook postInstall
'';
meta = with lib; { meta = with lib; {
homepage = "https://github.com/powerline/fonts"; homepage = "https://github.com/powerline/fonts";

View file

@ -1,21 +1,23 @@
{ lib, fetchFromGitHub }: { lib, stdenvNoCC, fetchFromGitHub }:
let stdenvNoCC.mkDerivation {
pname = "raleway";
version = "2016-08-30"; version = "2016-08-30";
in fetchFromGitHub {
name = "raleway-${version}";
owner = "impallari"; src = fetchFromGitHub {
repo = "Raleway"; owner = "impallari";
rev = "fa27f47b087fc093c6ae11cfdeb3999ac602929a"; repo = "Raleway";
rev = "fa27f47b087fc093c6ae11cfdeb3999ac602929a";
hash = "sha256-mcIpE+iqG6M43I5TT95oV+5kNgphunmyxC+Jaj0JysQ=";
};
installPhase = ''
runHook preInstall
postFetch = ''
tar xf $downloadedFile --strip=1
find . -name "*-Original.otf" -exec install -Dt $out/share/fonts/opentype {} \; find . -name "*-Original.otf" -exec install -Dt $out/share/fonts/opentype {} \;
cp *.txt *.md -d $out
'';
sha256 = "16jr7drqg2wib2q48ajlsa7rh1jxjibl1wd4rjndi49vfl463j60"; runHook postInstall
'';
meta = { meta = {
description = "Raleway is an elegant sans-serif typeface family"; description = "Raleway is an elegant sans-serif typeface family";

View file

@ -1,23 +1,26 @@
{ lib, fetchFromGitHub }: { lib, stdenvNoCC, fetchFromGitHub }:
let
stdenvNoCC.mkDerivation rec {
pname = "redhat-official";
version = "4.0.2"; version = "4.0.2";
in
fetchFromGitHub {
name = "redhat-official-${version}";
owner = "RedHatOfficial"; src = fetchFromGitHub {
repo = "RedHatFont"; owner = "RedHatOfficial";
rev = version; repo = "RedHatFont";
rev = version;
hash = "sha256-p5RS/57CDApwnRDwMi0gIEJYTDAtibIyyU2w/pnbHJI=";
};
installPhase = ''
runHook preInstall
postFetch = ''
tar xf $downloadedFile --strip=1
for kind in mono proportional; do for kind in mono proportional; do
install -m444 -Dt $out/share/fonts/opentype fonts/$kind/static/otf/*.otf install -m444 -Dt $out/share/fonts/opentype fonts/$kind/static/otf/*.otf
install -m444 -Dt $out/share/fonts/truetype fonts/$kind/static/ttf/*.ttf install -m444 -Dt $out/share/fonts/truetype fonts/$kind/static/ttf/*.ttf
done done
'';
sha256 = "sha256-904uQtbAdLx9MJudLk/vVk/+uK0nsPbWbAeXrWxTHm8="; runHook postInstall
'';
meta = with lib; { meta = with lib; {
homepage = "https://github.com/RedHatOfficial/RedHatFont"; homepage = "https://github.com/RedHatOfficial/RedHatFont";

View file

@ -1,22 +1,24 @@
{ lib, fetchFromGitHub }: { lib, stdenvNoCC, fetchFromGitHub }:
let stdenvNoCC.mkDerivation rec {
pname = "RhodiumLibre"; pname = "RhodiumLibre";
version = "1.2.0"; version = "1.2.0";
in fetchFromGitHub {
name = "${pname}-${version}";
owner = "DunwichType"; src = fetchFromGitHub {
repo = pname; owner = "DunwichType";
rev = version; repo = pname;
rev = version;
hash = "sha256-YCQvUdjEAj4G71WCRCM0+NwiqRqwt1Ggeg9jb/oWEsY=";
};
installPhase = ''
runHook preInstall
postFetch = ''
tar xf $downloadedFile --strip=1
install -Dm444 -t $out/share/fonts/opentype/ RhodiumLibre-Regular.otf install -Dm444 -t $out/share/fonts/opentype/ RhodiumLibre-Regular.otf
install -Dm444 -t $out/share/fonts/truetype/ RhodiumLibre-Regular.ttf install -Dm444 -t $out/share/fonts/truetype/ RhodiumLibre-Regular.ttf
'';
sha256 = "04ax6bri5vsji465806p8d7zbdf12r5bpvcm9nb8isfqm81ggj0r"; runHook postInstall
'';
meta = with lib; { meta = with lib; {
description = "F/OSS/Libre font for Latin and Devanagari"; description = "F/OSS/Libre font for Latin and Devanagari";

View file

@ -1,20 +1,23 @@
{ lib, fetchFromGitHub }: { lib, stdenvNoCC, fetchFromGitHub }:
let stdenvNoCC.mkDerivation rec {
pname = "sahel-fonts"; pname = "sahel-fonts";
version = "3.4.0"; version = "3.4.0";
in fetchFromGitHub {
name = "${pname}-${version}";
owner = "rastikerdar"; src = fetchFromGitHub {
repo = "sahel-font"; owner = "rastikerdar";
rev = "v${version}"; repo = "sahel-font";
rev = "v${version}";
hash = "sha256-U4tIICXZFK9pk7zdzRwBPIPYFUlYXPSebnItUJUgGJY=";
};
installPhase = ''
runHook preInstall
postFetch = ''
tar xf $downloadedFile --strip=1
find . -name '*.ttf' -exec install -m444 -Dt $out/share/fonts/sahel-fonts {} \; find . -name '*.ttf' -exec install -m444 -Dt $out/share/fonts/sahel-fonts {} \;
runHook postInstall
''; '';
sha256 = "sha256-MrKSgz9WpVgLS37uH/7S0LPBD/n3GLXeUCMBD7x5CG8=";
meta = with lib; { meta = with lib; {
homepage = "https://github.com/rastikerdar/sahel-font"; homepage = "https://github.com/rastikerdar/sahel-font";

View file

@ -1,20 +1,23 @@
{ lib, fetchFromGitHub }: { lib, stdenvNoCC, fetchFromGitHub }:
let stdenvNoCC.mkDerivation rec {
pname = "samim-fonts"; pname = "samim-fonts";
version = "4.0.4"; version = "4.0.4";
in fetchFromGitHub {
name = "${pname}-${version}";
owner = "rastikerdar"; src = fetchFromGitHub {
repo = "samim-font"; owner = "rastikerdar";
rev = "v${version}"; repo = "samim-font";
rev = "v${version}";
hash = "sha256-erT8iV5YHbEN47nEE5p5CbQYUgm8daOjymLAWF4fpVk=";
};
installPhase = ''
runHook preInstall
postFetch = ''
tar xf $downloadedFile --strip=1
find . -name '*.ttf' -exec install -m444 -Dt $out/share/fonts/samim-fonts {} \; find . -name '*.ttf' -exec install -m444 -Dt $out/share/fonts/samim-fonts {} \;
runHook postInstall
''; '';
sha256 = "sha256-WYSJ2mAzAe5H0EaMYU3qNVcQ0lRuHsjZ11YmLnZ2FCo=";
meta = with lib; { meta = with lib; {
homepage = "https://github.com/rastikerdar/samim-font"; homepage = "https://github.com/rastikerdar/samim-font";

View file

@ -1,20 +1,23 @@
{ lib, fetchFromGitHub }: { lib, stdenvNoCC, fetchFromGitHub }:
let stdenvNoCC.mkDerivation rec {
pname = "shabnam-fonts"; pname = "shabnam-fonts";
version = "5.0.1"; version = "5.0.1";
in fetchFromGitHub {
name = "${pname}-${version}";
owner = "rastikerdar"; src = fetchFromGitHub {
repo = "shabnam-font"; owner = "rastikerdar";
rev = "v${version}"; repo = "shabnam-font";
rev = "v${version}";
hash = "sha256-H03GTKRVPiwU4edkr4x5upW4JCy6320Lo+cKK9FRMQs=";
};
installPhase = ''
runHook preInstall
postFetch = ''
tar xf $downloadedFile --strip=1
find . -name '*.ttf' -exec install -m444 -Dt $out/share/fonts/shabnam-fonts {} \; find . -name '*.ttf' -exec install -m444 -Dt $out/share/fonts/shabnam-fonts {} \;
runHook postInstall
''; '';
sha256 = "sha256-m4G4UtW/0S9CsvaSF7QfthfIxGQ02E7SucdDm5s3G7A=";
meta = with lib; { meta = with lib; {
homepage = "https://github.com/rastikerdar/shabnam-font"; homepage = "https://github.com/rastikerdar/shabnam-font";

View file

@ -1,20 +1,23 @@
{ lib, fetchFromGitHub }: { lib, stdenvNoCC, fetchFromGitHub }:
let stdenvNoCC.mkDerivation rec {
pname = "TT2020"; pname = "TT2020";
version = "2020-01-05"; version = "0.2.1";
in
fetchFromGitHub { src = fetchFromGitHub {
name = "${pname}-${version}"; owner = "ctrlcctrlv";
owner = "ctrlcctrlv"; repo = pname;
repo = pname; rev = "v${version}";
rev = "2b418fab5f99f72a18b3b2e7e2745ac4e03aa612"; hash = "sha256-eAJzaookHcQ/7QNq/HUKA/O2liyKynJNdo6QuZ1Bv6k=";
sha256 = "1z0nizvs0gp0xl7pn6xcjvsysxhnfm7aqfamplkyvya3fxvhncds"; };
installPhase = ''
runHook preInstall
postFetch = ''
tar xf $downloadedFile --strip=1
install -Dm644 -t $out/share/fonts/truetype dist/*.ttf install -Dm644 -t $out/share/fonts/truetype dist/*.ttf
install -Dm644 -t $out/share/fonts/woff2 dist/*.woff2 install -Dm644 -t $out/share/fonts/woff2 dist/*.woff2
runHook postInstall
''; '';
meta = with lib; { meta = with lib; {

View file

@ -1,20 +1,23 @@
{ lib, fetchFromGitHub }: { lib, stdenvNoCC, fetchFromGitHub }:
let stdenvNoCC.mkDerivation rec {
pname = "vazir-code-font"; pname = "vazir-code-font";
version = "1.1.2"; version = "1.1.2";
in fetchFromGitHub {
name = "${pname}-${version}";
owner = "rastikerdar"; src = fetchFromGitHub {
repo = "vazir-code-font"; owner = "rastikerdar";
rev = "v${version}"; repo = "vazir-code-font";
rev = "v${version}";
hash = "sha256-iBojse3eHr4ucZtPfpkN+mmO6sEExY8WcAallyPgMsI=";
};
installPhase = ''
runHook preInstall
postFetch = ''
tar xf $downloadedFile --strip=1
find . -name '*.ttf' -exec install -m444 -Dt $out/share/fonts/truetype {} \; find . -name '*.ttf' -exec install -m444 -Dt $out/share/fonts/truetype {} \;
runHook postInstall
''; '';
sha256 = "0ivwpn9xm2zwhwgg9mghyiy5v66cn4786w9j6rkff5cmzshv279r";
meta = with lib; { meta = with lib; {
homepage = "https://github.com/rastikerdar/vazir-code-font"; homepage = "https://github.com/rastikerdar/vazir-code-font";

View file

@ -1,20 +1,25 @@
{ lib, fetchFromGitHub }: { lib, stdenvNoCC, fetchFromGitHub }:
let stdenvNoCC.mkDerivation rec {
pname = "vazir-fonts"; pname = "vazir-fonts";
version = "32.0.0"; version = "32.0.0";
in fetchFromGitHub {
name = "${pname}-${version}";
owner = "rastikerdar"; src = fetchFromGitHub {
repo = "vazir-font"; owner = "rastikerdar";
rev = "v${version}"; repo = "vazir-font";
rev = "v${version}";
hash = "sha256-lkjlSW3Sfr1bJ9/IOsZl9yOVh9mYKhoV5XcLkqcQ71g=";
};
dontBuild = true;
installPhase = ''
runHook preInstall
postFetch = ''
tar xf $downloadedFile --strip=1
find . -name '*.ttf' -exec install -m444 -Dt $out/share/fonts/truetype {} \; find . -name '*.ttf' -exec install -m444 -Dt $out/share/fonts/truetype {} \;
runHook postInstall
''; '';
sha256 = "sha256-Uy8hgBtCcTLwXu9FkLN1WavUfP74Jf53ChxVGS3UBVM=";
meta = with lib; { meta = with lib; {
homepage = "https://github.com/rastikerdar/vazir-font"; homepage = "https://github.com/rastikerdar/vazir-font";

View file

@ -1,24 +1,24 @@
{ lib, fetchFromGitHub }: { lib, stdenvNoCC, fetchFromGitHub }:
let stdenvNoCC.mkDerivation rec {
pname = "xkcd-font"; pname = "xkcd-font";
version = "unstable-2017-08-24"; version = "unstable-2017-08-24";
in fetchFromGitHub {
name = "${pname}-${version}";
owner = "ipython"; src = fetchFromGitHub {
repo = pname; owner = "ipython";
rev = "5632fde618845dba5c22f14adc7b52bf6c52d46d"; repo = pname;
rev = "5632fde618845dba5c22f14adc7b52bf6c52d46d";
hash = "sha256-1DgSx2L+OpXuPVSXbbl/hcZUyBK9ikPyGWuk6wNzlwc=";
};
postFetch = '' installPhase = ''
install -Dm444 -t $out/share/fonts/opentype/ $out/xkcd/build/xkcd.otf runHook preInstall
install -Dm444 -t $out/share/fonts/truetype/ $out/xkcd-script/font/xkcd-script.ttf
shopt -s extglob dotglob install -Dm444 -t $out/share/fonts/opentype/ xkcd/build/xkcd.otf
rm -rf $out/!(share) install -Dm444 -t $out/share/fonts/truetype/ xkcd-script/font/xkcd-script.ttf
shopt -u extglob dotglob
runHook postInstall
''; '';
sha256 = "sha256-ITsJPs+ZXwUWYe2AmwyVZib8RV7bpiWHOUD8qEZRHHY=";
meta = with lib; { meta = with lib; {
description = "The xkcd font"; description = "The xkcd font";