mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-10-03 21:40:12 +00:00
Since 154.0.1-2 there are no submodules anymore. When removing the flag the fetcher does not use git anymore, at which point the old gitlab fetcher fails to download the archive, because the repo is actually hosted on forgejo now.
26 lines
452 B
Nix
26 lines
452 B
Nix
{
|
|
lib,
|
|
fetchurl,
|
|
fetchFromForgejo,
|
|
}:
|
|
let
|
|
src = lib.importJSON ./src.json;
|
|
in
|
|
{
|
|
inherit (src) packageVersion;
|
|
source = fetchFromForgejo (
|
|
src.source
|
|
// {
|
|
domain = "librewolf.dev";
|
|
owner = "librewolf";
|
|
repo = "source";
|
|
}
|
|
);
|
|
firefox = fetchurl (
|
|
src.firefox
|
|
// {
|
|
url = "mirror://mozilla/firefox/releases/${src.firefox.version}/source/firefox-${src.firefox.version}.source.tar.xz";
|
|
}
|
|
);
|
|
}
|