-
Notifications
You must be signed in to change notification settings - Fork 39
Expand file tree
/
Copy pathflake.nix
More file actions
42 lines (38 loc) · 1.16 KB
/
flake.nix
File metadata and controls
42 lines (38 loc) · 1.16 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
41
42
{
description = "A fast, safe, and intuitive DataFrame library.";
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
pkgs = nixpkgs.legacyPackages.${system};
granitePkg = pkgs.fetchFromGitHub {
repo = "granite";
owner = "mchav";
rev = "main";
hash = "sha256-ypDiV99w2J8q7XcMpFWkv0kEm2dtWZduWIkAsuXDHEo=";
};
hsPkgs = pkgs.haskellPackages.extend (self: super: rec {
granite = self.callCabal2nix "granite" granitePkg { };
dataframe = self.callCabal2nix "dataframe" ./. {
inherit granite;
};
});
in
{
packages = {
default = hsPkgs.dataframe;
};
devShells.default = hsPkgs.shellFor {
packages = ps: [ (ps.callCabal2nix "dataframe" ./. { }) ];
nativeBuildInputs = with pkgs; [
ghc
cabal-install
haskell-language-server
];
withHoogle = true;
};
});
}