mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-17 19:21:04 +00:00
b499d9256b
Upstream has pinned the settings repo using submodules since https://codeberg.org/librewolf/source/commit/3379ed0351 Use submodules to fetch the correct rev of the settings repo rather than guessing by choosing the latest rev
20 lines
475 B
Nix
20 lines
475 B
Nix
{ lib, fetchurl, fetchFromGitea }:
|
|
let src = lib.importJSON ./src.json;
|
|
in
|
|
{
|
|
inherit (src) packageVersion;
|
|
source = fetchFromGitea {
|
|
domain = "codeberg.org";
|
|
owner = "librewolf";
|
|
repo = "source";
|
|
fetchSubmodules = true;
|
|
inherit (src.source) rev sha256;
|
|
};
|
|
firefox = fetchurl {
|
|
url =
|
|
"mirror://mozilla/firefox/releases/${src.firefox.version}/source/firefox-${src.firefox.version}.source.tar.xz";
|
|
inherit (src.firefox) sha512;
|
|
};
|
|
}
|
|
|