1
0
Fork 0
mirror of https://github.com/NixOS/nixos-artwork synced 2024-10-18 00:06:24 -04:00

Merge pull request #114 from lheckemann/build-installer-tarball

Makefile: add provisions for building grub2 installer theme
This commit is contained in:
Samuel Dionne-Riel 2024-01-15 17:45:33 -05:00 committed by GitHub
commit a36185b45e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 26 additions and 1 deletions

2
.gitignore vendored
View file

@ -1,2 +1,4 @@
/result /result
/matrix/result /matrix/result
grub2-installer-theme.tar.gz
dejavu.pf2

View file

@ -1,4 +1,4 @@
modules = icons modules = icons bootloader
.PHONY: $(modules) install clean all .PHONY: $(modules) install clean all

17
bootloader/Makefile Normal file
View file

@ -0,0 +1,17 @@
grub2_icons := $(wildcard grub2-installer/icons/*.svg)
grub2_icons_png := $(foreach icon,$(icons),$(subst .svg,.png,$(icon)))
grub2-installer-theme.tar.gz: $(icons_png) $(wildcard grub2-installer/*.png) grub2-installer/dejavu.pf2 grub2-installer/theme.txt
tar -czf $@ $^
.PHONY: clean
clean:
rm $(icons_png) grub2-installer/dejavu.pf2 grub2-installer-theme.tar.gz
grub2-installer/icons/%.png: grub2-installer/icons/%.svg
inkscape -o $@ $<
grub2-installer/dejavu.pf2:
grub-mkfont -s 20 "$(dejavu)/share/fonts/truetype/DejaVuSans.ttf" -o $@

6
shell.nix Normal file
View file

@ -0,0 +1,6 @@
with import <nixpkgs> {};
mkShell {
nativeBuildInputs = [ grub2_efi inkscape imagemagick ];
dejavu = dejavu_fonts;
__strictDeps = true;
}