-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathflake.nix
41 lines (39 loc) · 1.32 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
{
description = "biobricks-okg BioBrick";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-23.05";
flake-utils.url = "github:numtide/flake-utils";
dev-shell.url = "github:biobricks-ai/dev-shell";
hdt-java = {
url = "github:insilica/nix-hdt-java";
inputs.flake-utils.follows = "flake-utils";
inputs.nixpkgs.follows = "nixpkgs";
};
};
outputs = { self, nixpkgs, flake-utils, dev-shell, hdt-java }:
flake-utils.lib.eachDefaultSystem (system:
with import nixpkgs { inherit system; }; {
devShells.default = dev-shell.devShells.${system}.default.overrideAttrs
(oldAttrs:
let
inherit (pkgs.perlPackages) makePerlPath;
perlEnv =
perl.withPackages (p: with p; [
CpanelJSONXS # see cpanfile
YAML # see cpanfile
URI # see cpanfile
TemplateToolkit # see db-fuseki/cpanfile
]); in {
buildInputs = oldAttrs.buildInputs ++ [
perlEnv
hdt-java.packages.${system}.default
apache-jena
apache-jena-fuseki
jq
];
env = oldAttrs.env // {
JENA_HOME = "${apache-jena}";
};
});
});
}