-
Notifications
You must be signed in to change notification settings - Fork 4
/
flake.nix
45 lines (43 loc) · 1.16 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
{
inputs = {
nixpkgs.url = github:NixOS/nixpkgs/nixpkgs-unstable;
purs-eval.url = github:klarkc/purs-eval;
utils.url = github:ursi/flake-utils;
};
outputs = { self, utils, ... }@inputs:
utils.apply-systems
{
inherit inputs;
# limited by purs-nix
systems = [ "x86_64-linux" ];
}
({ pkgs, purs-eval, ... }: {
packages.default = pkgs.writeShellApplication {
name = "slide";
text = ''
patat "$@"
'';
runtimeInputs = with pkgs; [
purs-eval
nodejs
w3m
haskellPackages.patat
haskellPackages.ghc
nodePackages.prettier
];
};
});
nixConfig = {
extra-substituters = [
"https://cache.nixos.org"
"https://cache.iog.io"
"https://klarkc.cachix.org"
];
extra-trusted-public-keys = [
"cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY="
"hydra.iohk.io:f/Ea+s+dFdN+3Y/G+FDgSq+a5NEWhJGzdjvKNGv0/EQ="
"klarkc.cachix.org-1:R+z+m4Cq0hMgfZ7AQ42WRpGuHJumLLx3k0XhwpNFq9U="
];
allow-import-from-derivation = "true";
};
}