DIO CANE
This commit is contained in:
parent
01101c9297
commit
177147654c
37
flake.nix
37
flake.nix
@ -1,23 +1,28 @@
|
|||||||
{
|
{
|
||||||
description = "My project using flake-utils";
|
description = "My project";
|
||||||
|
|
||||||
inputs = {
|
inputs = {
|
||||||
nixpkgs.url = "github:nixos/nixpkgs/nixos-24.11";
|
nixpkgs.url = "github:nixos/nixpkgs/nixos-24.11";
|
||||||
flake-utils.url = "github:numtide/flake-utils";
|
|
||||||
};
|
};
|
||||||
|
|
||||||
outputs = { self, nixpkgs, flake-utils }:
|
outputs = { nixpkgs, ... }:
|
||||||
flake-utils.lib.eachDefaultSystem (system:
|
let
|
||||||
let
|
inherit (nixpkgs) lib;
|
||||||
pkgs = nixpkgs.legacyPackages.${system};
|
|
||||||
in
|
forAllSystems = systems: buildPackages:
|
||||||
{
|
lib.genAttrs systems (system: buildPackages nixpkgs.legacyPackages.${system});
|
||||||
packages = {
|
|
||||||
huenicorn = pkgs.callPackage ./huenicorn.nix { };
|
buildPackages = systems: packageOverrides:
|
||||||
default = self.packages.${system}.huenicorn;
|
forAllSystems systems (
|
||||||
};
|
pkgs: builtins.mapAttrs (_: pkgs.callPackage ./huenicorn.nix) (packageOverrides pkgs)
|
||||||
}
|
);
|
||||||
);
|
|
||||||
|
unixPackages = buildPackages lib.platforms.unix (pkgs: {
|
||||||
|
default = { };
|
||||||
|
huenicorn = { };
|
||||||
|
});
|
||||||
|
in
|
||||||
|
{
|
||||||
|
packages = unixPackages;
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user