nilla: init
This commit is contained in:
parent
678005a0ee
commit
702fab32dc
5 changed files with 90 additions and 0 deletions
37
nilla.nix
Normal file
37
nilla.nix
Normal file
|
@ -0,0 +1,37 @@
|
|||
{
|
||||
inputs ? import ./inputs.nix,
|
||||
}:
|
||||
(import inputs.nilla).create (
|
||||
{ lib }:
|
||||
{
|
||||
config.inputs = builtins.mapAttrs (_: src: {
|
||||
inherit src;
|
||||
loader = "raw";
|
||||
}) inputs;
|
||||
|
||||
config.builders.nixpkgs-flake = {
|
||||
settings.type = lib.types.submodule {
|
||||
options.args = lib.options.create {
|
||||
type = lib.types.any;
|
||||
default.value = { };
|
||||
};
|
||||
};
|
||||
settings.default = { };
|
||||
build =
|
||||
pkg:
|
||||
lib.attrs.generate pkg.systems (
|
||||
system: inputs.nixpkgs.legacyPackages.${system}.callPackage pkg.package pkg.settings.args
|
||||
);
|
||||
};
|
||||
|
||||
config.shells.default = {
|
||||
systems = [ "x86_64-linux" ];
|
||||
builder = "nixpkgs-flake";
|
||||
shell =
|
||||
{ mkShell, hello }:
|
||||
mkShell {
|
||||
packages = [ hello ];
|
||||
};
|
||||
};
|
||||
}
|
||||
)
|
Loading…
Add table
Add a link
Reference in a new issue