-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathflake.nix
More file actions
40 lines (39 loc) · 1.3 KB
/
flake.nix
File metadata and controls
40 lines (39 loc) · 1.3 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
{
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
parts.url = "github:hercules-ci/flake-parts";
treefmt.url = "github:numtide/treefmt-nix";
flake-root.url = "github:srid/flake-root";
precommit.url = "github:cachix/pre-commit-hooks.nix";
};
outputs =
inputs:
inputs.parts.lib.mkFlake { inherit inputs; } {
imports = [
./nix/musikell.nix
./nix/devShells.nix
./nix/checks.nix
./nix/utils/treefmt.nix
./nix/utils/precommit.nix
];
systems = inputs.nixpkgs.lib.systems.flakeExposed;
perSystem =
{ pkgs, ... }:
let
ghc = "ghc98";
in
{
_module.args = {
musikell = {
name = "musikell";
version = "0.0.1";
description = "Music + Haskell + Engine = Musikell";
};
shell-config = {
inherit ghc;
ghcpkgs = pkgs.haskell.packages.${ghc};
};
};
};
};
}