-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathflake.nix
More file actions
42 lines (39 loc) · 1.23 KB
/
flake.nix
File metadata and controls
42 lines (39 loc) · 1.23 KB
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
{
description = "Utilities for exploring Debian package repositories";
inputs = { flake-utils.url = "github:numtide/flake-utils"; };
outputs = { self, nixpkgs, flake-utils }:
flake-utils.lib.eachDefaultSystem (system:
with
import nixpkgs { inherit system; };
let
eachCompiler = pkgSet: f:
lib.attrsets.mapAttrs (_: f) pkgSet.haskell.packages;
this = compiler:
haskell.lib.justStaticExecutables (compiler.callPackage ./. { });
packages = {
dynamic = eachCompiler pkgs this;
static = eachCompiler pkgsStatic this;
};
in
{
packages = packages // {
default = packages.dynamic.ghc98;
supported = linkFarm "supported" {
inherit (packages.dynamic) ghc90 ghc92 ghc94 ghc96 ghc98 ghc910 ghc912;
};
};
devShells = lib.attrsets.mapAttrsRecursiveCond
(as: !(lib.isDerivation as))
(_: p: p.env or p)
self.packages.${system};
}
);
nixConfig = {
extra-substituters = [
"https://neil-mayhew.cachix.org"
];
extra-trusted-public-keys = [
"neil-mayhew.cachix.org-1:mxrzBmebKDFyT7RzZom+8uhFochoTk6BL/1UTBU64eY="
];
};
}