flake: lib: convert to 'flake-parts'

This commit is contained in:
Bruno BELANYI 2023-03-08 17:47:47 +00:00
parent a88c99b9d7
commit b2f3bc955c
2 changed files with 7 additions and 4 deletions

View file

@ -1,7 +1,11 @@
{ self, nixpkgs, ... } @ inputs:
{ self, inputs, ... }:
let
inherit (inputs) nixpkgs;
lib = nixpkgs.lib.extend (final: _: {
my = import "${self}/lib" { inherit inputs; pkgs = nixpkgs; lib = final; };
});
in
lib
{
flake.lib = lib;
}