Update yt-dlp

This commit is contained in:
NullBite 2024-05-28 01:43:47 -04:00
parent 100bb5890a
commit 948605e68f
Signed by: nullbite
GPG Key ID: 6C4D545385D4925A
3 changed files with 25 additions and 0 deletions

17
flake.lock generated
View File

@ -618,6 +618,22 @@
"type": "github"
}
},
"nixpkgs-yt-dlp-2024": {
"locked": {
"lastModified": 1716813593,
"narHash": "sha256-862V4NORGlvQ6g8Y5ZSBrtosqYep2lXGsywTcV6OvHw=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "528db5fa94041f0b4909a855d8b9fb9b44fa4f5d",
"type": "github"
},
"original": {
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "528db5fa94041f0b4909a855d8b9fb9b44fa4f5d",
"type": "github"
}
},
"nixpkgs_2": {
"locked": {
"lastModified": 1716633019,
@ -664,6 +680,7 @@
"nixfiles-assets": "nixfiles-assets",
"nixpkgs": "nixpkgs_2",
"nixpkgs-unstable": "nixpkgs-unstable",
"nixpkgs-yt-dlp-2024": "nixpkgs-yt-dlp-2024",
"pkg-android-tools": "pkg-android-tools",
"rust-overlay": "rust-overlay",
"stylix": "stylix",

View File

@ -6,6 +6,8 @@
# ^^^^^^^^^^^^^ this part is optional
nixpkgs-unstable.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
nixpkgs-yt-dlp-2024.url = "github:NixOS/nixpkgs/528db5fa94041f0b4909a855d8b9fb9b44fa4f5d";
# this seems to be a popular way to declare systems
systems.url = "github:nix-systems/default";

View File

@ -13,6 +13,12 @@ let
in prev.gimp-with-plugins.override { inherit plugins; };
in {
gimp-with-plugins = gimp-with-plugins-good;
yt-dlp = let
pkgs-y = (import nixfiles.inputs.nixpkgs-yt-dlp-2024.outPath) { inherit (prev) system;};
in if ((builtins.compareVersions "2024.5.27" prev.yt-dlp.version) == 1)
then (final.python3Packages.toPythonApplication pkgs-y.python3Packages.yt-dlp)
else prev.yt-dlp;
}
# # can't optionalAttrs for version checks because it breaks lazy eval and causes infinite recursion
# // {