wip
This commit is contained in:
parent
86583c46ae
commit
c9bb233ec2
2 changed files with 25 additions and 9 deletions
14
Makefile
14
Makefile
|
|
@ -1,24 +1,20 @@
|
||||||
PREFIX=/usr/local
|
PREFIX?=/usr/local
|
||||||
|
|
||||||
|
all: youtube-mp3 nope blue
|
||||||
|
|
||||||
install:
|
install:
|
||||||
install -Dm755 youtube-mp3 $(DESTDIR)$(PREFIX)/bin/youtube-mp3
|
install -Dm755 youtube-mp3 $(DESTDIR)$(PREFIX)/bin/youtube-mp3
|
||||||
install -Dm755 nope $(DESTDIR)$(PREFIX)/bin/nope
|
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
|
install -Dm755 blue $(DESTDIR)$(PREFIX)/bin/blue
|
||||||
|
|
||||||
uninstall:
|
uninstall:
|
||||||
$(RM) $(DESTDIR)$(PREFIX)/bin/youtube-mp3
|
$(RM) $(DESTDIR)$(PREFIX)/bin/youtube-mp3
|
||||||
$(RM) $(DESTDIR)$(PREFIX)/bin/nope
|
$(RM) $(DESTDIR)$(PREFIX)/bin/nope
|
||||||
$(RM) $(DESTDIR)$(PREFIX)/bin/m4a2wav
|
|
||||||
$(RM) $(DESTDIR)$(PREFIX)/bin/src
|
|
||||||
$(RM) $(DESTDIR)$(PREFIX)/bin/blue
|
$(RM) $(DESTDIR)$(PREFIX)/bin/blue
|
||||||
|
|
||||||
shellcheck:
|
check:
|
||||||
shellcheck youtube-mp3
|
shellcheck youtube-mp3
|
||||||
shellcheck nope
|
shellcheck nope
|
||||||
shellcheck m4a2wav
|
|
||||||
shellcheck src
|
|
||||||
shellcheck blue
|
shellcheck blue
|
||||||
|
|
||||||
.PHONY: install uninstall shellcheck
|
.PHONY: all install uninstall check
|
||||||
|
|
|
||||||
20
default.nix
Normal file
20
default.nix
Normal 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
|
||||||
|
'';
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue