Init Nix flake and create Nix package

This commit is contained in:
2024-11-15 18:31:32 +01:00
parent 333bbdd26b
commit 485e69eb55
3 changed files with 91 additions and 0 deletions

23
flake.nix Normal file
View File

@@ -0,0 +1,23 @@
{
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;
};
});
}