-
-
Notifications
You must be signed in to change notification settings - Fork 5
/
flake.nix
61 lines (58 loc) · 1.51 KB
/
flake.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
{
description = "fresh browser previews (dev, beta)";
inputs = {
flake-utils = {
url = "github:numtide/flake-utils";
inputs.systems.follows = "systems";
};
nixpkgs.url = "nixpkgs/nixos-unstable";
systems.url = "github:nix-systems/x86_64-linux";
};
outputs =
{
self,
nixpkgs,
flake-utils,
...
}:
flake-utils.lib.eachDefaultSystem (
system:
let
pkgs = import nixpkgs {
system = "x86_64-linux";
config.allowUnfree = true;
};
google-chrome = channel: pkgs.callPackage ./google-chrome { inherit channel; };
in
{
checks = {
google-chrome = google-chrome "stable";
google-chrome-beta = google-chrome "beta";
google-chrome-dev = google-chrome "dev";
};
devShells = {
default = pkgs.mkShell {
name = "fresh-browser-previews-shell";
buildInputs = with pkgs; [
nix
nix-prefetch-git
nixfmt-rfc-style
(python3.withPackages (
p3pkgs: with p3pkgs; [
feedparser
looseversion
requests
]
))
];
};
};
packages = {
default = google-chrome "stable";
google-chrome = google-chrome "stable";
google-chrome-beta = google-chrome "beta";
google-chrome-dev = google-chrome "dev";
};
}
);
}