-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathflake.nix
33 lines (28 loc) · 865 Bytes
/
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
{
description = "gerrit-haskell";
nixConfig.bash-prompt = "[nix(gerrit-haskell)] ";
inputs = {
nixpkgs.url =
"github:NixOS/nixpkgs/d3780c92e64472e8f9aa54f7bbb0dd4483b98303";
flake-utils.url = "github:numtide/flake-utils";
};
outputs = { self, nixpkgs, flake-utils }:
flake-utils.lib.eachSystem [ "x86_64-linux" ] (system:
let
pkgs = nixpkgs.legacyPackages.${system};
myPackage =
pkgs.haskellPackages.callCabal2nix "gerrit-haskell" self { };
in {
defaultPackage = myPackage;
devShell = pkgs.haskellPackages.shellFor {
packages = p: [ myPackage ];
buildInputs = [
pkgs.ghcid
pkgs.haskellPackages.fourmolu
pkgs.cabal-install
pkgs.hlint
pkgs.haskell-language-server
];
};
});
}