mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-26 23:54:01 +00:00
b1571265b5
Simplifies Firefox maintenance. See #160520 - make the firefox common.nix available from the top level as buildMozillaMach - use new buildMozillaMach function in librewolf expressions - minor changes to update script
19 lines
484 B
Nix
19 lines
484 B
Nix
{ fetchurl, fetchFromGitLab }:
|
|
let src = builtins.fromJSON (builtins.readFile ./src.json);
|
|
in
|
|
{
|
|
inherit (src) packageVersion;
|
|
source = fetchFromGitLab {
|
|
owner = "librewolf-community";
|
|
repo = "browser/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;
|
|
};
|
|
}
|
|
|