mirror of
https://github.com/nix-community/disko.git
synced 2026-11-30 21:13:28 +01:00
fix: add package build and fix disko
This commit is contained in:
1 parent
f82656afbd
commit
2a59af78a8
3 files changed
+34
-2
No files matched your search
@@ -0,0 +1,15 @@
|
||||
PREFIX ?= /usr/local
|
||||
SHARE ?= $(PREFIX)/share/disko
|
||||
|
||||
all:
|
||||
|
||||
SOURCES = disko cli.nix default.nix types.nix
|
||||
|
||||
install:
|
||||
mkdir -p $(PREFIX)/bin $(SHARE)
|
||||
sed \
|
||||
-e "s|libexec_dir=\".*\"|libexec_dir=\"$(SHARE)\"|" \
|
||||
-e "s|#!/usr/bin/env.*|#!/usr/bin/env bash|" \
|
||||
disko > $(PREFIX)/bin/disko
|
||||
chmod 755 $(PREFIX)/bin/disko
|
||||
cp -r $(SOURCES) $(SHARE)
|
||||
Reference in new issue
Block a user