Files
openhab.nix/flake.nix
Simonas Kazlauskas a6f82efdaa I’m tired of mvn2nix
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…
2023-02-22 02:07:08 +02:00

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;
};
});
}