Skip to content

Commit

Permalink
librewolf-unwrapped: repository moved to Codeberg
Browse files Browse the repository at this point in the history
  • Loading branch information
dotlambda committed Jan 25, 2024
1 parent 612f972 commit c71060d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
9 changes: 5 additions & 4 deletions pkgs/applications/networking/browsers/librewolf/src.nix
Original file line number Diff line number Diff line change
@@ -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;
};
Expand Down
4 changes: 2 additions & 2 deletions pkgs/applications/networking/browsers/librewolf/update.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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)
Expand Down

0 comments on commit c71060d

Please sign in to comment.