Use packagesFromDirectoryRecursive to improve package building
This commit is contained in:
parent
57dafbe7e1
commit
8aa578123c
10 changed files with 27 additions and 33 deletions
19
pkgs/fonts/noto-sans-cjk.nix
Normal file
19
pkgs/fonts/noto-sans-cjk.nix
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
{
|
||||
nixosTests,
|
||||
srcs,
|
||||
stdenvNoCC,
|
||||
}: let
|
||||
source = srcs.noto-sans-cjk;
|
||||
in
|
||||
stdenvNoCC.mkDerivation (_finalAttrs: {
|
||||
pname = "noto-sans-cjk";
|
||||
version = source.version;
|
||||
|
||||
src = source.src;
|
||||
|
||||
installPhase = ''
|
||||
install -m444 -Dt $out/share/fonts/opentype/noto-sans-cjk Sans/OTC/*.ttc
|
||||
'';
|
||||
|
||||
passthru.tests.noto-fonts = nixosTests.noto-fonts;
|
||||
})
|
||||
19
pkgs/fonts/noto-serif-cjk.nix
Normal file
19
pkgs/fonts/noto-serif-cjk.nix
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
{
|
||||
nixosTests,
|
||||
srcs,
|
||||
stdenvNoCC,
|
||||
}: let
|
||||
source = srcs.noto-serif-cjk;
|
||||
in
|
||||
stdenvNoCC.mkDerivation (_finalAttrs: {
|
||||
pname = "noto-serif-cjk";
|
||||
version = source.version;
|
||||
|
||||
src = source.src;
|
||||
|
||||
installPhase = ''
|
||||
install -m444 -Dt $out/share/fonts/opentype/noto-serif-cjk Serif/OTC/*.ttc
|
||||
'';
|
||||
|
||||
passthru.tests.noto-fonts = nixosTests.noto-fonts;
|
||||
})
|
||||
Loading…
Add table
Add a link
Reference in a new issue