Summary Files Commits Branches @commit @diff @stats
path: root / overlays / firefox-mozilla / default.nix
blob: 1b2cb1b9c0825331cfeaea749331e96ff61424ce (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
let
  # https://github.com/NixOS/nixpkgs/blob/607aeee18d5c4de0cddfdfbebd595930051c9618/lib/trivial.nix#L504-L515
  inPureEvalMode = ! builtins ? currentSystem;

  rev = "ad7af231a95acf65ccc4afa0c766f5c0674ad3f1";
  src = builtins.fetchTarball {
      url = "https://github.com/mozilla/nixpkgs-mozilla/archive/${rev}.tar.gz";
      # This locks the overlay definition version, but **not** the packages version
      sha256 = "sha256:0j7m3ay5zcnijg0vqnqyf618n66x5zgk9p4j2zas1c0gyqzh1bqr";
    };
in
  final: prev: {
    mozilla = if inPureEvalMode then
                  abort "mozilla/nixpkgs-mozilla firefox packages are not reproducible! Use --impure!"
              else
                  ((import "${src}/firefox-overlay.nix") final prev).latest;
  }