forked from NixOS/SC-election-2024
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdefault.nix
32 lines (27 loc) · 960 Bytes
/
default.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
{
system ? builtins.currentSystem,
}:
let
nixpkgs = fetchTarball {
url = "https://github.com/NixOS/nixpkgs/archive/352f9b286e9746847a66ab9d3ed927408e7ea746.tar.gz";
sha256 = "0cz0jk3jgafhgszyzck0441xxd16k3mi9679bmhy6sz21rivbnmv";
};
pkgs = import nixpkgs {
inherit system;
config = { };
overlays = [ ];
};
in
rec {
# All contributions by user
data = import ./nix/data.nix { inherit pkgs; };
# Contributions for a specific user
contribsForUser = import ./nix/user-contribs.nix { inherit pkgs data; };
# Plot to show the electorate size based on the commit cutoff
plot = import ./nix/plot.nix { inherit pkgs data; };
# A script to generate voters.json from the automatically eligible voters
generateVoters = import ./nix/generate.nix { inherit pkgs data; };
# Verifies the voters.json and returns a derivation with the emails/github ids
voters = import ./nix/voters.nix { inherit pkgs; };
inherit pkgs;
}