Changes: - Fixes typo in libName for policies.json (used to be zen-$version instead of zen-bin-$version for a single file) - Remove unneeded wrapFirefox arguments (the current defaults for wrapFirefox are good for us)
24 lines
742 B
Nix
24 lines
742 B
Nix
{
|
|
pkgs ? import <nixpkgs> {},
|
|
system ? pkgs.stdenv.hostPlatform.system,
|
|
}: let
|
|
mkZen = pkgs: name: system: entry: let
|
|
variant = (builtins.fromJSON (builtins.readFile ./sources.json)).${entry}.${system};
|
|
|
|
desktopFile = "zen-${name}.desktop";
|
|
in
|
|
pkgs.callPackage ./package.nix {
|
|
inherit name desktopFile variant;
|
|
};
|
|
in rec {
|
|
beta-unwrapped = mkZen pkgs "beta" system "beta";
|
|
twilight-unwrapped = mkZen pkgs "twilight" system "twilight";
|
|
twilight-official-unwrapped = mkZen pkgs "twilight" system "twilight-official";
|
|
|
|
beta = pkgs.wrapFirefox beta-unwrapped {};
|
|
twilight = pkgs.wrapFirefox twilight-unwrapped {};
|
|
twilight-official = pkgs.wrapFirefox twilight-official-unwrapped {};
|
|
|
|
default = beta;
|
|
}
|