-
Notifications
You must be signed in to change notification settings - Fork 2
/
flake.nix
39 lines (36 loc) · 1.21 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
{
inputs = {
nixpkgs.url = "github:nixos/nixpkgs";
flake-utils = {
url = "github:numtide/flake-utils";
inputs.nixpkgs.follows = "nixpkgs";
};
mvn2nix = {
url = "github:fzakaria/mvn2nix";
inputs.nixpkgs.follows = "nixpkgs";
inputs.utils.follows = "flake-utils";
};
};
outputs = { self, nixpkgs, flake-utils, mvn2nix }:
flake-utils.lib.eachDefaultSystem (system:
let
pkgs = nixpkgs.legacyPackages.${system};
jre = pkgs.openjdk11_headless;
neo4j = pkgs.callPackage ./neo4j.nix { inherit jre; };
buildMavenRepositoryFromLockFile =
mvn2nix.legacyPackages.${system}.buildMavenRepositoryFromLockFile;
db-home = "/homeless-shelter";
in {
packages.neo4jWrapper =
pkgs.callPackage ./wrapper.nix { inherit neo4j jre db-home; };
defaultPackage = self.packages.${system}.neo4jWrapper;
mkPlugin = import ./pluginBuilders {
inherit pkgs buildMavenRepositoryFromLockFile;
mvn2nix = mvn2nix.packages.${system}.mvn2nix;
};
plugins = import ./plugins {
inherit pkgs;
packagePrebuiltPlugin = self.mkPlugin.${system}.prebuilt;
};
});
}