diff --git a/Makefile b/Makefile index d0d7d90..b8f006b 100644 --- a/Makefile +++ b/Makefile @@ -1,24 +1,20 @@ -PREFIX=/usr/local +PREFIX?=/usr/local + +all: youtube-mp3 nope blue install: install -Dm755 youtube-mp3 $(DESTDIR)$(PREFIX)/bin/youtube-mp3 install -Dm755 nope $(DESTDIR)$(PREFIX)/bin/nope - install -Dm755 m4a2wav $(DESTDIR)$(PREFIX)/bin/m4a2wav - install -Dm755 src $(DESTDIR)$(PREFIX)/bin/src install -Dm755 blue $(DESTDIR)$(PREFIX)/bin/blue uninstall: $(RM) $(DESTDIR)$(PREFIX)/bin/youtube-mp3 $(RM) $(DESTDIR)$(PREFIX)/bin/nope - $(RM) $(DESTDIR)$(PREFIX)/bin/m4a2wav - $(RM) $(DESTDIR)$(PREFIX)/bin/src $(RM) $(DESTDIR)$(PREFIX)/bin/blue -shellcheck: +check: shellcheck youtube-mp3 shellcheck nope - shellcheck m4a2wav - shellcheck src shellcheck blue -.PHONY: install uninstall shellcheck +.PHONY: all install uninstall check diff --git a/default.nix b/default.nix new file mode 100644 index 0000000..676040e --- /dev/null +++ b/default.nix @@ -0,0 +1,20 @@ +with import {}; + +stdenv.mkDerivation rec { + name = "my-scripts"; + + src = ./.; + # src = builtins.fetchGit { + # url = "https://github.com/joachimschmidt557/src"; + # ref = "master"; + # }; + + buildInputs = [ + youtube-dl ffmpeg # For youtube-mp3 + dmenu bluez # For blue + ]; + + installPhase = '' + make DESTDIR="$out" PREFIX="" install + ''; +}