forked from mirrors/nixpkgs
Merge pull request #283632 from dotlambda/librewolf-codeberg
librewolf-unwrapped: repository moved to Codeberg
This commit is contained in:
commit
2b7423c470
|
@ -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;
|
||||
};
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue