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

54 lines
1.4 KiB
Nix
Raw Normal View History

2021-10-27 09:05:52 +00:00
{
description = "Flake basics described using the module system";
inputs = {
2024-06-01 23:35:37 +00:00
nixpkgs-lib.url = "https://github.com/NixOS/nixpkgs/archive/eb9ceca17df2ea50a250b6b27f7bf6ab0186f198.tar.gz"; # ad57eef4ef0659193044870c731987a6df5cf56b /lib from nixos-unstable
2021-10-27 09:05:52 +00:00
};
2023-05-29 17:52:03 +00:00
outputs = { nixpkgs-lib, ... }: {
2023-05-31 14:31:11 +00: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 21:05:53 +00:00
templates = {
default = {
path = ./template/default;
description = ''
2022-05-25 14:36:33 +00:00
A minimal flake using flake-parts.
2022-05-11 21:05:53 +00:00
'';
};
multi-module = {
path = ./template/multi-module;
description = ''
2022-05-25 14:36:33 +00:00
A minimal flake using flake-parts.
2022-05-11 21:05:53 +00:00
'';
};
2023-03-25 06:38:31 +00:00
unfree = {
path = ./template/unfree;
description = ''
A minimal flake using flake-parts importing nixpkgs with the unfree option.
'';
};
2024-06-30 10:55:15 +00:00
package = {
path = ./template/package;
description = ''
A flake with a simple package:
- Nixpkgs
- callPackage
- src with fileset
- a check with runCommand
'';
};
2021-11-21 14:28:25 +00: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 09:05:52 +00:00
};
}