-
Notifications
You must be signed in to change notification settings - Fork 39
/
Makefile
31 lines (22 loc) · 868 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
INSTALL ?= install
NIXOS_SHELL ?= $(shell nix-build --no-out-link default.nix)/bin/nixos-shell
all:
test:
$(NIXOS_SHELL) examples/vm.nix
test-resources:
$(NIXOS_SHELL) examples/vm-resources.nix
test-forward:
$(NIXOS_SHELL) examples/vm-forward.nix
test-graphics:
$(NIXOS_SHELL) examples/vm-graphics.nix
test-mounts:
$(NIXOS_SHELL) examples/vm-mounts.nix
test-efi:
$(NIXOS_SHELL) examples/vm-efi.nix
test-broken:
! $(NIXOS_SHELL) --flake '.#BROKEN-DO-NOT-USE-UNLESS-YOU-KNOW-WHAT-YOU-ARE-DOING'
install:
$(INSTALL) -D bin/nixos-shell $(DESTDIR)$(PREFIX)/bin/nixos-shell
$(INSTALL) -D share/modules/nixos-shell.nix $(DESTDIR)$(PREFIX)/share/modules/nixos-shell.nix
$(INSTALL) -D share/modules/nixos-shell-config.nix $(DESTDIR)$(PREFIX)/share/modules/nixos-shell-config.nix
$(INSTALL) -D share/nixos-shell.nix $(DESTDIR)$(PREFIX)/share/nixos-shell.nix