-
Notifications
You must be signed in to change notification settings - Fork 1
/
flake.nix
35 lines (30 loc) · 934 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
34
35
{
description = "FreeSnaky";
nixConfig.bash-prompt = "[nix(FreeSnaky)] ";
inputs = {
hspkgs.url =
"github:podenv/hspkgs/70ebfaa3e643ce20fe8ff97c17693ceb4bfaa30d";
flake-utils.url = "github:numtide/flake-utils";
};
outputs = { self, hspkgs, flake-utils }:
flake-utils.lib.eachSystem [ "x86_64-linux" ] (system:
let
packageName = "FreeSnaky";
pkgs = hspkgs.pkgs;
haskellPackages = pkgs.hspkgs;
myPackage = haskellPackages.callCabal2nix packageName self { };
in {
defaultExe = pkgs.haskell.lib.justStaticExecutables myPackage;
defaultPackage = myPackage;
devShell = haskellPackages.shellFor {
packages = p: [ myPackage ];
buildInputs = [
pkgs.ghcid
pkgs.ormolu
pkgs.cabal-install
pkgs.hlint
pkgs.haskell-language-server
];
};
});
}