2021-10-27 11:05:52 +02:00
{
description = " F l a k e b a s i c s d e s c r i b e d u s i n g t h e m o d u l e s y s t e m " ;
inputs = {
2024-10-01 23:35:34 +00:00
nixpkgs-lib . url = " h t t p s : / / g i t h u b . c o m / N i x O S / n i x p k g s / a r c h i v e / f b 1 9 2 f e c 7 c c 7 a 4 c 2 6 d 5 1 7 7 9 e 9 b a b 0 7 c e 6 f a 5 5 9 7 a . t a r . g z " ; # 06cf0e1da4208d3766d898b7fdab6513366d45b9 /lib from nixos-unstable
2021-10-27 11:05:52 +02:00
} ;
2024-08-29 13:36:47 +02:00
outputs = inputs @ { nixpkgs-lib , . . . }:
2024-08-29 13:34:48 +02:00
let
lib = import ./lib.nix {
inherit ( nixpkgs-lib ) lib ;
# Extra info for version check message
revInfo =
if nixpkgs-lib ? rev
then " ( n i x p k g s - l i b . r e v : ${ nixpkgs-lib . rev } ) "
else " " ;
2022-05-11 23:05:53 +02:00
} ;
2024-08-29 13:34:48 +02: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 07:38:31 +01:00
} ;
2024-08-29 13:34:48 +02:00
flakeModules = {
easyOverlay = ./extras/easyOverlay.nix ;
flakeModules = ./extras/flakeModules.nix ;
2024-02-16 22:50:15 +01:00
modules = ./extras/modules.nix ;
2024-08-29 13:37:23 +02:00
partitions = ./extras/partitions.nix ;
2024-06-30 12:55:15 +02:00
} ;
2024-08-29 13:34:48 +02:00
in
2024-08-29 13:36:47 +02:00
lib . mkFlake { inherit inputs ; } {
systems = [ ] ;
2024-08-29 13:44:04 +02:00
imports = [ flakeModules . partitions ] ;
partitionedAttrs . checks = " d e v " ;
partitionedAttrs . devShells = " d e v " ;
partitionedAttrs . herculesCI = " d e v " ;
partitions . dev . extraInputsFlake = ./dev ;
partitions . dev . module = {
imports = [ ./dev/flake-module.nix ] ;
} ;
2024-08-29 13:36:47 +02:00
flake = {
inherit lib templates flakeModules ;
} ;
2021-11-21 15:28:25 +01:00
} ;
2021-10-27 11:05:52 +02:00
}