mirror of
https://github.com/nix-community/home-manager
synced 2024-11-26 06:30:28 +00:00
c100bd0c4b
- Add NIXPKGS_REV, so we can pass arbitrary revisions for testing (for example, `release-21.05` so we can test backports). - Add format target, that calls the format script.
17 lines
361 B
Makefile
17 lines
361 B
Makefile
.PHONY: all all-tests test format
|
|
NIXPKGS_REV := nixpkgs-unstable
|
|
NIX_PATH := nixpkgs=https://github.com/NixOS/nixpkgs/archive/${NIXPKGS_REV}.tar.gz
|
|
|
|
all: all-tests
|
|
|
|
all-tests:
|
|
$(MAKE) test TEST=all
|
|
|
|
test:
|
|
ifndef TEST
|
|
$(error Use 'make test TEST=<test_name>' to run desired test)
|
|
endif
|
|
nix-shell --pure tests -I ${NIX_PATH} -A run.${TEST}
|
|
|
|
format:
|
|
./format
|