1
0
Fork 0
mirror of https://github.com/hercules-ci/flake-parts.git synced 2024-12-14 11:47:31 +00:00
flake-parts/flake.nix

62 lines
1.7 KiB
Nix
Raw Normal View History

2021-10-27 09:05:52 +00:00
{
description = "Flake basics described using the module system";
inputs = {
2024-08-01 23:35:38 +00:00
nixpkgs-lib.url = "https://github.com/NixOS/nixpkgs/archive/a5d394176e64ab29c852d03346c1fc9b0b7d33eb.tar.gz"; # 9f918d616c5321ad374ae6cb5ea89c9e04bf3e58 /lib from nixos-unstable
2021-10-27 09:05:52 +00:00
};
2024-08-29 11:36:47 +00:00
outputs = inputs@{ nixpkgs-lib, ... }:
2024-08-29 11:34:48 +00:00
let
lib = import ./lib.nix {
inherit (nixpkgs-lib) lib;
# Extra info for version check message
revInfo =
if nixpkgs-lib?rev
then " (nixpkgs-lib.rev: ${nixpkgs-lib.rev})"
else "";
2022-05-11 21:05:53 +00:00
};
2024-08-29 11:34:48 +00:00
templates = {
default = {
path = ./template/default;
description = ''
A minimal flake using flake-parts.
'';
};
multi-module = {
path = ./template/multi-module;
description = ''
A minimal flake using flake-parts.
'';
};
unfree = {
path = ./template/unfree;
description = ''
A minimal flake using flake-parts importing nixpkgs with the unfree option.
'';
};
package = {
path = ./template/package;
description = ''
A flake with a simple package:
- Nixpkgs
- callPackage
- src with fileset
- a check with runCommand
'';
};
2023-03-25 06:38:31 +00:00
};
2024-08-29 11:34:48 +00:00
flakeModules = {
easyOverlay = ./extras/easyOverlay.nix;
flakeModules = ./extras/flakeModules.nix;
2024-08-29 11:37:23 +00:00
partitions = ./extras/partitions.nix;
2024-06-30 10:55:15 +00:00
};
2024-08-29 11:34:48 +00:00
in
2024-08-29 11:36:47 +00:00
lib.mkFlake { inherit inputs; } {
systems = [ ];
flake = {
inherit lib templates flakeModules;
};
2021-11-21 14:28:25 +00:00
};
2021-10-27 09:05:52 +00:00
}