-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathflake.nix
More file actions
27 lines (23 loc) · 719 Bytes
/
flake.nix
File metadata and controls
27 lines (23 loc) · 719 Bytes
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
{
description = "shellify";
inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
outputs = { self, nixpkgs }:
let pkgs = nixpkgs.legacyPackages.x86_64-linux;
in {
packages.x86_64-linux.default = (pkgs.haskell.lib.overrideCabal (
pkgs.haskellPackages.developPackage {
root = ./.;
modifier = drv:
pkgs.haskell.lib.addBuildTools drv (with pkgs.haskellPackages;
[ cabal-install
hlint
haskell-language-server
]);
}
) {
enableSeparateDataOutput = false;
}).overrideAttrs(old: {
buildInputs = old.buildInputs ++ [ pkgs.nix ];
});
};
}