-
Notifications
You must be signed in to change notification settings - Fork 0
/
flake.nix
40 lines (39 loc) · 1.1 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
{
description = "Colubridae programming language";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
flake-utils.url = "github:numtide/flake-utils";
};
outputs = { self, nixpkgs, flake-utils }:
flake-utils.lib.eachDefaultSystem (system:
let
haskell-packages = nixpkgs.legacyPackages.${system}.haskell.packages;
ghcVersion = "ghc982";
pkgs = import nixpkgs { inherit system; };
in {
packages = {
default = haskell-packages.${ghcVersion}.developPackage {
root = ./.;
withHoogle = true;
};
};
devShells = {
default = pkgs.mkShell {
nativeBuildInputs = with pkgs; [
haskell.compiler.ghc98
(haskell-language-server.override {
supportedGhcVersions = [ "98" ];
})
typst
typstfmt
typst-lsp
lldb
llvmPackages_latest.llvm
clang
zlib
gnumake
gdb
];
}; };
});
}