30 lines
724 B
Nix
30 lines
724 B
Nix
{
|
|
description = "Flake which provides support for OpenHAB importer tool package as well as convinient module";
|
|
|
|
inputs = {
|
|
nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-unstable";
|
|
flake-utils.url = "github:numtide/flake-utils";
|
|
flake-utils.inputs.nixpkgs.follows = "nixpkgs";
|
|
};
|
|
|
|
outputs = {
|
|
self,
|
|
nixpkgs,
|
|
flake-utils,
|
|
}:
|
|
flake-utils.lib.eachDefaultSystem (system: let
|
|
pkgs = nixpkgs.legacyPackages.${system};
|
|
in {
|
|
packages = rec {
|
|
oh-importer = pkgs.callPackage ./package.nix {};
|
|
default = oh-importer;
|
|
};
|
|
})
|
|
// {
|
|
nixosModules = rec {
|
|
oh-importer = import ./module.nix self;
|
|
default = oh-importer;
|
|
};
|
|
};
|
|
}
|