This commit is contained in:
joachimschmidt557 2020-05-23 11:10:30 +02:00
parent 86583c46ae
commit c9bb233ec2
2 changed files with 25 additions and 9 deletions

View file

@ -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

20
default.nix Normal file
View file

@ -0,0 +1,20 @@
with import <nixpkgs> {};
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
'';
}