19 lines
677 B
Makefile
19 lines
677 B
Makefile
DEVICE=root@biscuit.lan
|
|
# NFLAGS=-I nixpkgs=../nixpkgs
|
|
|
|
.PHONY: toplevel android-bootimg default update android-recovery android-extlinux-boot
|
|
|
|
default toplevel:
|
|
nix-build $(NFLAGS) -A outputs.$@ -o $@
|
|
|
|
android-bootimg android-recovery android-extlinux-boot:
|
|
nix-build $(NFLAGS) -A outputs.android.$@ -o $@
|
|
|
|
lk2nd:
|
|
nix-build $(NFLAGS) ../mobile-nixos --argstr device motorola-harpia -A pkgs.pkgsBuildBuild.lk2nd.msm8916 -o lk2nd
|
|
|
|
|
|
update: toplevel
|
|
nix-copy-closure --to $(DEVICE) -v --include-outputs ./toplevel
|
|
ssh $(DEVICE) "nix-env --profile /nix/var/nix/profiles/system --set `readlink toplevel` && /nix/var/nix/profiles/system/bin/switch-to-configuration switch"
|