From c71060d91f8d244bea176504179110c04462b96a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Sch=C3=BCtz?= Date: Wed, 24 Jan 2024 16:14:24 -0800 Subject: [PATCH] librewolf-unwrapped: repository moved to Codeberg --- pkgs/applications/networking/browsers/librewolf/src.nix | 9 +++++---- .../networking/browsers/librewolf/update.nix | 4 ++-- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/pkgs/applications/networking/browsers/librewolf/src.nix b/pkgs/applications/networking/browsers/librewolf/src.nix index 25a6e46d2277..89e36dca8933 100644 --- a/pkgs/applications/networking/browsers/librewolf/src.nix +++ b/pkgs/applications/networking/browsers/librewolf/src.nix @@ -1,11 +1,12 @@ -{ lib, fetchurl, fetchFromGitLab, fetchFromGitea }: +{ lib, fetchurl, fetchFromGitea }: let src = lib.importJSON ./src.json; in { inherit (src) packageVersion; - source = fetchFromGitLab { - owner = "librewolf-community"; - repo = "browser/source"; + source = fetchFromGitea { + domain = "codeberg.org"; + owner = "librewolf"; + repo = "source"; fetchSubmodules = true; inherit (src.source) rev sha256; }; diff --git a/pkgs/applications/networking/browsers/librewolf/update.nix b/pkgs/applications/networking/browsers/librewolf/update.nix index 2cd36786c755..147d7558dccd 100644 --- a/pkgs/applications/networking/browsers/librewolf/update.nix +++ b/pkgs/applications/networking/browsers/librewolf/update.nix @@ -17,7 +17,7 @@ writeScript "update-librewolf" '' PATH=${lib.makeBinPath [ coreutils curl gnugrep gnupg gnused jq moreutils nix-prefetch-git ]} set -euo pipefail - latestTag=$(curl https://gitlab.com/api/v4/projects/librewolf-community%2Fbrowser%2Fsource/repository/tags?per_page=1 | jq -r .[0].name) + latestTag=$(curl "https://codeberg.org/api/v1/repos/librewolf/source/tags?page=1&limit=1" | jq -r .[0].name) echo "latestTag=$latestTag" srcJson=pkgs/applications/networking/browsers/librewolf/src.json @@ -29,7 +29,7 @@ writeScript "update-librewolf" '' fi prefetchOut=$(mktemp) - repoUrl=https://gitlab.com/librewolf-community/browser/source.git/ + repoUrl=https://codeberg.org/librewolf/source.git nix-prefetch-git $repoUrl --quiet --rev $latestTag --fetch-submodules > $prefetchOut srcDir=$(jq -r .path < $prefetchOut) srcHash=$(jq -r .sha256 < $prefetchOut)