1
0
Fork 0
mirror of https://github.com/hercules-ci/flake-parts.git synced 2025-03-15 04:58:03 +00:00
flake-parts/flake.nix

44 lines
1.1 KiB
Nix
Raw Normal View History

2021-10-27 11:05:52 +02:00
{
description = "Flake basics described using the module system";
inputs = {
2024-05-02 09:00:51 +00:00
nixpkgs-lib.url = "https://github.com/NixOS/nixpkgs/archive/50eb7ecf4cd0a5756d7275c8ba36790e5bd53e33.tar.gz"; # 58a1abdbae3217ca6b702f03d3b35125d88a2994 /lib from nixos-unstable
2021-10-27 11:05:52 +02:00
};
2023-05-29 13:52:03 -04:00
outputs = { nixpkgs-lib, ... }: {
2023-05-31 16:31:11 +02:00
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 23:05:53 +02:00
templates = {
default = {
path = ./template/default;
description = ''
2022-05-25 16:36:33 +02:00
A minimal flake using flake-parts.
2022-05-11 23:05:53 +02:00
'';
};
multi-module = {
path = ./template/multi-module;
description = ''
2022-05-25 16:36:33 +02:00
A minimal flake using flake-parts.
2022-05-11 23:05:53 +02:00
'';
};
2023-03-25 07:38:31 +01:00
unfree = {
path = ./template/unfree;
description = ''
A minimal flake using flake-parts importing nixpkgs with the unfree option.
'';
};
2021-11-21 15:28:25 +01:00
};
2022-12-01 16:40:48 +00:00
flakeModules = {
easyOverlay = ./extras/easyOverlay.nix;
flakeModules = ./extras/flakeModules.nix;
2022-12-01 16:40:48 +00:00
};
2021-10-27 11:05:52 +02:00
};
}