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…
This commit is contained in:
Simonas Kazlauskas
2023-02-22 02:07:08 +02:00
parent c92aa648e4
commit a6f82efdaa
8 changed files with 62 additions and 17647 deletions

View File

@@ -2,24 +2,15 @@
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs";
flake-utils.url = "github:numtide/flake-utils";
openhab-distro = {
url = "github:openhab/openhab-distro/3.4.2"; # OH-DISTRO-URL
flake = false;
};
};
outputs = { flake-utils, nixpkgs, openhab-distro, ... }: flake-utils.lib.eachDefaultSystem (system: {
outputs = { flake-utils, nixpkgs, ... }: flake-utils.lib.eachDefaultSystem (system: {
packages = rec {
jdk-openhab = nixpkgs.legacyPackages.${system}.jdk11;
maven-openhab = nixpkgs.legacyPackages.${system}.maven.override { jdk = jdk-openhab; };
openhab-repository = nixpkgs.legacyPackages.${system}.callPackage ./openhab-repository.nix {
inherit openhab-distro;
maven = maven-openhab;
};
openhab = nixpkgs.legacyPackages.${system}.callPackage ./openhab.nix {
inherit openhab-distro openhab-repository jdk-openhab;
maven = maven-openhab;
inherit jdk-openhab;
};
openhab-addons = nixpkgs.legacyPackages.${system}.callPackage ./openhab-addons.nix {};
default = openhab;
};
});