mirror of
https://github.com/donovanglover/nix-config.git
synced 2024-12-16 20:00:50 +01:00
8b9ed3f623
Instead of installing a pre-built RPM, we can build it ourselves on the spot instead. This is less maintenance for me and makes it easier to verify the package being installed.
62 lines
1.3 KiB
Makefile
62 lines
1.3 KiB
Makefile
THIS_MAKEFILE := $(lastword $(MAKEFILE_LIST))
|
|
install=sudo dnf install --assumeyes
|
|
make=$(MAKE) -C ..
|
|
makeh=$(MAKE) -f $(THIS_MAKEFILE)
|
|
|
|
.PHONY: all
|
|
all:
|
|
@${makeh} muya.rpm
|
|
@${makeh} install
|
|
@${makeh} wal
|
|
@${makeh} crystal
|
|
@${makeh} rust
|
|
@${makeh} diff-so-fancy
|
|
@${makeh} dotfiles
|
|
|
|
.PHONY: rice
|
|
rice:
|
|
@${install} gnome-tweaks pop-gtk-theme pop-icon-theme breeze-cursor-theme
|
|
|
|
muya.rpm: muya.spec
|
|
@rm -rfv noarch
|
|
@fedpkg --release f29 local
|
|
@mv noarch/*.rpm muya.rpm
|
|
@rmdir noarch
|
|
@rm -fv *.src.rpm
|
|
|
|
.PHONY: install
|
|
install:
|
|
@${install} muya.rpm
|
|
|
|
.PHONY: dotfiles
|
|
dotfiles:
|
|
@${make} package=tmux
|
|
@${make} package=fish
|
|
|
|
.PHONY: wal
|
|
wal:
|
|
@sudo pip3 install pywal
|
|
|
|
.PHONY: crystal
|
|
crystal:
|
|
@sudo ./vendor/crystal-setup.sh
|
|
@${install} crystal
|
|
|
|
.PHONY: rust
|
|
rust:
|
|
@./vendor/rustup-init.sh
|
|
|
|
.PHONY: diff-so-fancy
|
|
diff-so-fancy:
|
|
@sudo install -Dm 755 ./vendor/diff-so-fancy /usr/bin/diff-so-fancy
|
|
|
|
.PHONY: update
|
|
update:
|
|
@mkdir -pv vendor
|
|
@curl -L https://raw.githubusercontent.com/so-fancy/diff-so-fancy/master/third_party/build_fatpack/diff-so-fancy -o vendor/diff-so-fancy
|
|
@curl -L https://sh.rustup.rs -o vendor/rustup-init.sh
|
|
@curl -L https://dist.crystal-lang.org/rpm/setup.sh -o vendor/crystal-setup.sh
|
|
@chmod 755 vendor/diff-so-fancy
|
|
@chmod 755 vendor/rustup-init.sh
|
|
@chmod 755 vendor/crystal-setup.sh
|