Merge pull request #196848 from natsukium/hackgen-font/init
hackgen fonts: init
This commit is contained in:
commit
45cedb1cc0
25
pkgs/data/fonts/hackgen/default.nix
Normal file
25
pkgs/data/fonts/hackgen/default.nix
Normal file
@ -0,0 +1,25 @@
|
||||
{ lib
|
||||
, fetchzip
|
||||
}:
|
||||
|
||||
fetchzip rec {
|
||||
pname = "hackgen-font";
|
||||
version = "2.7.1";
|
||||
|
||||
url = "https://github.com/yuru7/HackGen/releases/download/v${version}/HackGen_v${version}.zip";
|
||||
sha256 = "sha256-UL6U/q2u1UUP31lp0tEnFjzkn6dn8AY6hk5hJhPsOAE=";
|
||||
postFetch = ''
|
||||
install -Dm644 $out/*.ttf -t $out/share/fonts/hackgen
|
||||
shopt -s extglob dotglob
|
||||
rm -rf $out/!(share)
|
||||
shopt -u extglob dotglob
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "A composite font of Hack and GenJyuu-Goghic";
|
||||
homepage = "https://github.com/yuru7/HackGen";
|
||||
license = licenses.ofl;
|
||||
platforms = platforms.all;
|
||||
maintainers = with maintainers; [ natsukium ];
|
||||
};
|
||||
}
|
25
pkgs/data/fonts/hackgen/nerdfont.nix
Normal file
25
pkgs/data/fonts/hackgen/nerdfont.nix
Normal file
@ -0,0 +1,25 @@
|
||||
{ lib
|
||||
, fetchzip
|
||||
}:
|
||||
|
||||
fetchzip rec {
|
||||
pname = "hackgen-nf-font";
|
||||
version = "2.7.1";
|
||||
|
||||
url = "https://github.com/yuru7/HackGen/releases/download/v${version}/HackGen_NF_v${version}.zip";
|
||||
sha256 = "sha256-9sylGr37kKIGWgThZFqL2y6oI3t2z4kbXYk5DBMIb/g=";
|
||||
postFetch = ''
|
||||
install -Dm644 $out/*.ttf -t $out/share/fonts/hackgen-nf
|
||||
shopt -s extglob dotglob
|
||||
rm -rf $out/!(share)
|
||||
shopt -u extglob dotglob
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "A composite font of Hack, GenJyuu-Gothic and nerd-fonts";
|
||||
homepage = "https://github.com/yuru7/HackGen";
|
||||
license = licenses.ofl;
|
||||
platforms = platforms.all;
|
||||
maintainers = with maintainers; [ natsukium ];
|
||||
};
|
||||
}
|
@ -26185,6 +26185,10 @@ with pkgs;
|
||||
|
||||
hack-font = callPackage ../data/fonts/hack { };
|
||||
|
||||
hackgen-font = callPackage ../data/fonts/hackgen { };
|
||||
|
||||
hackgen-nf-font = callPackage ../data/fonts/hackgen/nerdfont.nix { };
|
||||
|
||||
helvetica-neue-lt-std = callPackage ../data/fonts/helvetica-neue-lt-std { };
|
||||
|
||||
helvum = callPackage ../applications/audio/helvum { };
|
||||
|
Loading…
Reference in New Issue
Block a user