mirror of
https://github.com/nix-community/nixos-generators.git
synced 2024-11-23 11:04:18 +03:00
14 lines
362 B
Makefile
14 lines
362 B
Makefile
PREFIX ?= /usr/local
|
|
SHARE ?= $(PREFIX)/share/nixos-generator
|
|
|
|
all:
|
|
|
|
install:
|
|
mkdir -p $(PREFIX)/bin $(SHARE)
|
|
sed \
|
|
-e "s|libexec_dir=\".*\"|libexec_dir=\"$(SHARE)\"|" \
|
|
-e "s|#!/usr/bin/env.*|#!/usr/bin/env bash|" \
|
|
nixos-generate > $(PREFIX)/bin/nixos-generate
|
|
chmod 755 $(PREFIX)/bin/nixos-generate
|
|
cp -r formats config.nix eval-format.nix $(SHARE)
|