forked from biobricks-ai/dev-shell
-
Notifications
You must be signed in to change notification settings - Fork 0
/
flake.nix
53 lines (51 loc) · 1.63 KB
/
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
{
description = "Development shell for biobricks";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-23.05";
flake-utils.url = "github:numtide/flake-utils";
biobricks-R = {
url = "github:biobricks-ai/biobricks-R";
inputs.flake-utils.follows = "flake-utils";
inputs.nixpkgs.follows = "nixpkgs";
};
hdt-cpp = {
url = "github:insilica/nix-hdt";
inputs.flake-utils.follows = "flake-utils";
inputs.nixpkgs.follows = "nixpkgs";
};
morph-kgc = {
url = "github:insilica/nix-morph-kgc";
inputs.flake-utils.follows = "flake-utils";
inputs.nixpkgs.follows = "nixpkgs";
};
};
outputs = { self, nixpkgs, flake-utils, biobricks-R, hdt-cpp, morph-kgc }:
flake-utils.lib.eachDefaultSystem (system:
with import nixpkgs { inherit system; };
let
# tmducken requires duckdb 0.8.1 or later, and nixos-23.05 only had 0.7
duckdb-version = "0.8.1";
duckdb = (pkgs.duckdb.overrideAttrs (oldAttrs: rec {
version = duckdb-version;
src = fetchFromGitHub {
owner = "duckdb";
repo = "duckdb";
rev = "v${duckdb-version}";
sha256 = "sha256-LEv9yURkYvONObTbIA4CS+umwCRMH8gRQaDtzbCzID4=";
};
}));
in {
devShells.default = mkShell {
buildInputs = [
biobricks-R.packages.${system}.rEnv
clojure
csv2parquet
duckdb
hdt-cpp.packages.${system}.default
jdk
morph-kgc.packages.${system}.default
];
env = { DUCKDB_HOME = "${duckdb}/lib"; };
};
});
}