* refactor(package): use package fetchers
builtin fetchers are blocking, therefore also slow. for packaging we
should use the package fetchers
* refactor: build the desktop file as a part of the package
* refactor(default.nix): remove redundant args
* refactor(flake.nix): remove duplicated code & rec
* fix(hm-module)!: typo in mkFireFoxmodule
* fix(hm-module): work with nixpkgs config `allowAliases = false;`
* fix: partial revert of 805c8f56e8
the `lib.mkDefault` was being ignored and the policies would never be
set. perhaps a better thing to do here would be to remove them
completly. otherwise this is the next best thing
* refactor(package): use `hash` over `sha256`
Co-authored-by: Seth Flynn <getchoo@tuta.io>
22 lines
638 B
Nix
22 lines
638 B
Nix
{
|
|
pkgs ? import <nixpkgs> {},
|
|
system ? pkgs.stdenv.hostPlatform.system,
|
|
}: let
|
|
mkZen = name: entry: let
|
|
variant = (builtins.fromJSON (builtins.readFile ./sources.json)).${entry}.${system};
|
|
in
|
|
pkgs.callPackage ./package.nix {
|
|
inherit name variant;
|
|
};
|
|
in rec {
|
|
beta-unwrapped = mkZen "beta" "beta";
|
|
twilight-unwrapped = mkZen "twilight" "twilight";
|
|
twilight-official-unwrapped = mkZen "twilight" "twilight-official";
|
|
|
|
beta = pkgs.wrapFirefox beta-unwrapped {};
|
|
twilight = pkgs.wrapFirefox twilight-unwrapped {};
|
|
twilight-official = pkgs.wrapFirefox twilight-official-unwrapped {};
|
|
|
|
default = beta;
|
|
}
|