ytfzf: 1.1.6 -> 1.2.0

https://github.com/pystardust/ytfzf/releases/tag/v1.2.0
This commit is contained in:
Robert Schütz 2021-06-26 11:18:02 +02:00
parent 6925f053c4
commit ab1141d5f0
2 changed files with 10 additions and 11 deletions

View file

@ -16,13 +16,13 @@
stdenv.mkDerivation rec {
pname = "ytfzf";
version = "1.1.6";
version = "1.2.0";
src = fetchFromGitHub {
owner = "pystardust";
repo = "ytfzf";
rev = "v${version}";
sha256 = "sha256-HXn/8Lrt6tNZWW1AeKMArOiW9t1v7MzlynSLryNdI5Y=";
sha256 = "sha256-3wbjCtRmnd9tm8kqKaIF6VmMdKsWznhOvQkEsrAJpAE=";
};
patches = [

View file

@ -1,8 +1,8 @@
diff --git a/ytfzf b/ytfzf
index d5ff8c9..96f9c8f 100755
index f4d2e0d..7a3b4b6 100755
--- a/ytfzf
+++ b/ytfzf
@@ -934,23 +934,8 @@ send_notify () {
@@ -1260,22 +1260,8 @@ EOF
}
update_ytfzf () {
@ -12,19 +12,18 @@ index d5ff8c9..96f9c8f 100755
-
- if sed -n '1p' < "$updatefile" | grep -q '#!/bin/sh'; then
- chmod 755 "$updatefile"
- if [ "$(uname)" = "Darwin" ]; then
- sudo cp "$updatefile" "/usr/local/bin/ytfzf"
- else
- sudo cp "$updatefile" "/usr/bin/ytfzf"
- fi
- [ "$(uname)" = "Darwin" ] && prefix="/usr/local/bin" || prefix="/usr/bin"
- function_exists "sudo" && doasroot="sudo" || doasroot="doas"
- $doasroot cp "$updatefile" "$prefix/ytfzf"
- unset prefix doasroot
- else
- printf "%bFailed to update ytfzf. Try again later.%b" "$c_red" "$c_reset"
- fi
-
- rm "$updatefile"
- exit
- exit 0
+ printf "%bUpdates have to be installed through Nix.%b\n" "$c_red" "$c_reset"
+ exit 1
}
sort_video_data_date () {
#gives a value to sort by (this will give the unix time the video was uploaded)