Added package for Nunito font.
This commit is contained in:
parent
d588aaeaae
commit
e969a5a6e8
25
pkgs/nunito/flake.lock
Normal file
25
pkgs/nunito/flake.lock
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
{
|
||||
"nodes": {
|
||||
"nixpkgs": {
|
||||
"locked": {
|
||||
"lastModified": 1710470187,
|
||||
"narHash": "sha256-l2R47RqhdEUYrMrQjdFKhxtqprkJjIE89qJx3iEVv+U=",
|
||||
"owner": "NixOS",
|
||||
"repo": "nixpkgs",
|
||||
"rev": "f242fc768bdfcf91d9094a8a8f66551324bf1a47",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"id": "nixpkgs",
|
||||
"type": "indirect"
|
||||
}
|
||||
},
|
||||
"root": {
|
||||
"inputs": {
|
||||
"nixpkgs": "nixpkgs"
|
||||
}
|
||||
}
|
||||
},
|
||||
"root": "root",
|
||||
"version": 7
|
||||
}
|
||||
13
pkgs/nunito/flake.nix
Normal file
13
pkgs/nunito/flake.nix
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
{
|
||||
description = "Flake containing Nunito font";
|
||||
|
||||
outputs = { self, nixpkgs }: {
|
||||
|
||||
packages.x86_64-linux.nunito =
|
||||
let pkgs = import nixpkgs { system = "x86_64-linux"; };
|
||||
in pkgs.callPackage ./nunito.nix {};
|
||||
|
||||
packages.x86_64-linux.default = self.packages.x86_64-linux.nunito;
|
||||
|
||||
};
|
||||
}
|
||||
19
pkgs/nunito/nunito.nix
Normal file
19
pkgs/nunito/nunito.nix
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
{ pkgs }:
|
||||
with pkgs;
|
||||
stdenv.mkDerivation rec {
|
||||
name = "archivo";
|
||||
version = "43d16f9";
|
||||
src = fetchFromGitHub {
|
||||
owner = "googlefonts";
|
||||
repo = "nunito";
|
||||
rev = version;
|
||||
hash = lib.fakeHash; # "sha256-kMyHDyslAJW8pAw8SIdbKjQrTbPtmKOCDAtr48LrdNI="; # TODO fix
|
||||
};
|
||||
|
||||
# sourceRoot = "fonts/ttf";
|
||||
|
||||
installPhase = ''
|
||||
mkdir -p $out/share/fonts/truetype
|
||||
cp -a fonts/ttf/*.ttf $out/share/fonts/truetype
|
||||
'';
|
||||
}
|
||||
Loading…
Reference in a new issue