2022-09-25 13:06:44 +00:00
|
|
|
# This file describes your repository contents.
|
|
|
|
# It should return a set of nix derivations
|
|
|
|
# and optionally the special attributes `lib`, `modules` and `overlays`.
|
|
|
|
# It should NOT import <nixpkgs>. Instead, you should take pkgs as an argument.
|
|
|
|
# Having pkgs default to <nixpkgs> is fine though, and it lets you use short
|
|
|
|
# commands such as:
|
|
|
|
# nix-build -A mypackage
|
2023-01-16 09:02:58 +00:00
|
|
|
{pkgs ? import <nixpkgs> {}}: let
|
2022-09-25 13:06:44 +00:00
|
|
|
lib = import ./lib {inherit pkgs;}; # functions
|
2023-03-24 07:53:11 +00:00
|
|
|
flake = (lib.importFlake {inherit (pkgs) system;}).defaultNix;
|
2023-03-18 07:01:47 +00:00
|
|
|
in
|
2023-03-24 07:53:11 +00:00
|
|
|
{
|
2023-03-18 07:01:47 +00:00
|
|
|
# The `lib`, `modules`, and `overlay` names are special
|
2023-03-24 07:53:11 +00:00
|
|
|
inherit (flake) lib modules overlays;
|
2023-03-18 07:01:47 +00:00
|
|
|
}
|
2023-03-24 07:53:11 +00:00
|
|
|
// (flake.packages.${pkgs.system})
|