ytfzf: 1.1.6 -> 1.2.0
https://github.com/pystardust/ytfzf/releases/tag/v1.2.0
This commit is contained in:
parent
6925f053c4
commit
ab1141d5f0
|
@ -16,13 +16,13 @@
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
pname = "ytfzf";
|
pname = "ytfzf";
|
||||||
version = "1.1.6";
|
version = "1.2.0";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "pystardust";
|
owner = "pystardust";
|
||||||
repo = "ytfzf";
|
repo = "ytfzf";
|
||||||
rev = "v${version}";
|
rev = "v${version}";
|
||||||
sha256 = "sha256-HXn/8Lrt6tNZWW1AeKMArOiW9t1v7MzlynSLryNdI5Y=";
|
sha256 = "sha256-3wbjCtRmnd9tm8kqKaIF6VmMdKsWznhOvQkEsrAJpAE=";
|
||||||
};
|
};
|
||||||
|
|
||||||
patches = [
|
patches = [
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
diff --git a/ytfzf b/ytfzf
|
diff --git a/ytfzf b/ytfzf
|
||||||
index d5ff8c9..96f9c8f 100755
|
index f4d2e0d..7a3b4b6 100755
|
||||||
--- a/ytfzf
|
--- a/ytfzf
|
||||||
+++ b/ytfzf
|
+++ b/ytfzf
|
||||||
@@ -934,23 +934,8 @@ send_notify () {
|
@@ -1260,22 +1260,8 @@ EOF
|
||||||
}
|
}
|
||||||
|
|
||||||
update_ytfzf () {
|
update_ytfzf () {
|
||||||
|
@ -12,19 +12,18 @@ index d5ff8c9..96f9c8f 100755
|
||||||
-
|
-
|
||||||
- if sed -n '1p' < "$updatefile" | grep -q '#!/bin/sh'; then
|
- if sed -n '1p' < "$updatefile" | grep -q '#!/bin/sh'; then
|
||||||
- chmod 755 "$updatefile"
|
- chmod 755 "$updatefile"
|
||||||
- if [ "$(uname)" = "Darwin" ]; then
|
- [ "$(uname)" = "Darwin" ] && prefix="/usr/local/bin" || prefix="/usr/bin"
|
||||||
- sudo cp "$updatefile" "/usr/local/bin/ytfzf"
|
- function_exists "sudo" && doasroot="sudo" || doasroot="doas"
|
||||||
- else
|
- $doasroot cp "$updatefile" "$prefix/ytfzf"
|
||||||
- sudo cp "$updatefile" "/usr/bin/ytfzf"
|
- unset prefix doasroot
|
||||||
- fi
|
|
||||||
- else
|
- else
|
||||||
- printf "%bFailed to update ytfzf. Try again later.%b" "$c_red" "$c_reset"
|
- printf "%bFailed to update ytfzf. Try again later.%b" "$c_red" "$c_reset"
|
||||||
- fi
|
- fi
|
||||||
-
|
-
|
||||||
- rm "$updatefile"
|
- rm "$updatefile"
|
||||||
- exit
|
- exit 0
|
||||||
+ printf "%bUpdates have to be installed through Nix.%b\n" "$c_red" "$c_reset"
|
+ printf "%bUpdates have to be installed through Nix.%b\n" "$c_red" "$c_reset"
|
||||||
+ exit 1
|
+ exit 1
|
||||||
}
|
}
|
||||||
|
|
||||||
sort_video_data_date () {
|
#gives a value to sort by (this will give the unix time the video was uploaded)
|
||||||
|
|
Loading…
Reference in a new issue