add fonts
This commit is contained in:
parent
36c303d6a2
commit
751d0b3fd6
|
@ -0,0 +1,19 @@
|
|||
{ lib, stdenv, fetchurl, unzip, ... }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "lunchtype-ttf";
|
||||
pname = name;
|
||||
version = "1723838178";
|
||||
|
||||
buildInputs = [ unzip ];
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://www.fontsquirrel.com/fonts/download/lunchtype";
|
||||
hash = "sha256-N9JVLqkm5rE/4bMmTLtlL6MdoQFQu9Ml+AIaJXGL7QY=";
|
||||
};
|
||||
|
||||
unpackPhase = ''
|
||||
mkdir -p $out/share/fonts/truetype
|
||||
unzip $src -d $out/share/fonts/truetype
|
||||
'';
|
||||
}
|
|
@ -0,0 +1,21 @@
|
|||
{ lib, stdenv, fetchzip, ... }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "space-grotesk";
|
||||
pname = name;
|
||||
version = "2.0.0";
|
||||
|
||||
src = fetchzip {
|
||||
url = "https://github.com/floriankarsten/space-grotesk/releases/download/${version}/SpaceGrotesk-${version}.zip";
|
||||
stripRoot = false;
|
||||
hash = "sha256-niwd5E3rJdGmoyIFdNcK5M9A9P2rCbpsyZCl7CDv7I8=";
|
||||
};
|
||||
|
||||
installPhase = ''
|
||||
mkdir -p $out/share/fonts/truetype
|
||||
mkdir -p $out/share/fonts/opentype
|
||||
|
||||
mv SpaceGrotesk-${version}/ttf/* $out/share/fonts/truetype
|
||||
mv SpaceGrotesk-${version}/otf/* $out/share/fonts/opentype
|
||||
'';
|
||||
}
|
|
@ -4,5 +4,7 @@ prev: final: {
|
|||
gtk-theme-mac-os-9 = final.callPackage ./gtk-theme-mac-os-9 { };
|
||||
theme-platinum9 = final.callPackage ./theme-platinum9 { };
|
||||
nineicons-redux = final.callPackage ./nineicons-redux { };
|
||||
lunchtype-ttf = final.callPackage ./atau-fonts/lunchtype-ttf.nix { };
|
||||
space-grotesk = final.callPackage ./atau-fonts/space-grotesk.nix { };
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue