mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-10 08:16:15 +02:00
9c620e4afa
etc. correctly. * Fixed nix-switch.
19 lines
539 B
Makefile
19 lines
539 B
Makefile
bin_SCRIPTS = nix-switch nix-collect-garbage \
|
|
nix-pull nix-push
|
|
|
|
noinst_SCRIPTS = nix-profile.sh
|
|
|
|
install-exec-local:
|
|
$(INSTALL) -d $(sysconfdir)/profile.d
|
|
$(INSTALL_PROGRAM) nix-profile.sh $(sysconfdir)/profile.d/nix.sh
|
|
$(INSTALL) -d $(sysconfdir)/nix
|
|
# !!! don't overwrite local modifications
|
|
$(INSTALL_DATA) prebuilts.conf $(sysconfdir)/nix/prebuilts.conf
|
|
|
|
%: %.in Makefile
|
|
sed \
|
|
-e s^@prefix\@^$(prefix)^g \
|
|
-e s^@sysconfdir\@^$(sysconfdir)^g \
|
|
-e s^@localstatedir\@^$(localstatedir)^g \
|
|
< $< > $@ || rm $@
|
|
chmod +x $@
|