Unverified Commit d5c8a3b4 authored by Jost Alemann's avatar Jost Alemann Committed by Sandro Jäckel
Browse files
parent 08b92281
Loading
Loading
Loading
Loading
+7 −2
Original line number Diff line number Diff line
@@ -19,16 +19,21 @@ python3Packages.buildPythonApplication rec {
  # The websites yt-dlp deals with are a very moving target. That means that
  # downloads break constantly. Because of that, updates should always be backported
  # to the latest stable release.
  version = "2025.07.21";
  version = "2025.08.11";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "yt-dlp";
    repo = "yt-dlp";
    tag = version;
    hash = "sha256-VNUkCdrzbOwD+iD9BZUQFJlWXRc0tWJAvLnVKNZNPhQ=";
    hash = "sha256-j7x844MPPFdXYTJiiMnru3CE79A/6JdfJDdh8it9KsU=";
  };

  postPatch = ''
    substituteInPlace yt_dlp/version.py \
      --replace-fail "UPDATE_HINT = None" 'UPDATE_HINT = "Nixpkgs/NixOS likely already contain an updated version.\n       To get it run nix-channel --update or nix flake update in your config directory."'
  '';

  build-system = with python3Packages; [ hatchling ];

  nativeBuildInputs = [