I figured out how to get things working, but it requires non-trivial modifications to it, and I am not in a mmod to make them. Especially given that building OH from source doesn’t actually make much sense – mvn will “just” download the “built” dependencies anyhow…
18 lines
594 B
Nix
18 lines
594 B
Nix
{
|
|
inputs = {
|
|
nixpkgs.url = "github:NixOS/nixpkgs";
|
|
flake-utils.url = "github:numtide/flake-utils";
|
|
};
|
|
|
|
outputs = { flake-utils, nixpkgs, ... }: flake-utils.lib.eachDefaultSystem (system: {
|
|
packages = rec {
|
|
jdk-openhab = nixpkgs.legacyPackages.${system}.jdk11;
|
|
openhab = nixpkgs.legacyPackages.${system}.callPackage ./openhab.nix {
|
|
inherit jdk-openhab;
|
|
};
|
|
openhab-addons = nixpkgs.legacyPackages.${system}.callPackage ./openhab-addons.nix {};
|
|
default = openhab;
|
|
};
|
|
});
|
|
}
|