chore: remove lib attr in flake and expose functions directly

add nixpkgs-lib input so we don't need full nixpkgs just for the lib
This commit is contained in:
technofab 2025-08-14 11:38:53 +02:00
parent c9c329ec0f
commit 7222ac48cd
No known key found for this signature in database
3 changed files with 21 additions and 6 deletions

18
flake.lock generated
View file

@ -16,9 +16,25 @@
"type": "github"
}
},
"nixpkgs-lib": {
"locked": {
"lastModified": 1754184128,
"narHash": "sha256-AjhoyBL4eSyXf01Bmc6DiuaMrJRNdWopmdnMY0Pa/M0=",
"owner": "nix-community",
"repo": "nixpkgs.lib",
"rev": "02e72200e6d56494f4a7c0da8118760736e41b60",
"type": "github"
},
"original": {
"owner": "nix-community",
"repo": "nixpkgs.lib",
"type": "github"
}
},
"root": {
"inputs": {
"nixpkgs": "nixpkgs"
"nixpkgs": "nixpkgs",
"nixpkgs-lib": "nixpkgs-lib"
}
}
},

View file

@ -1,11 +1,12 @@
{
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixpkgs-unstable";
nixpkgs-lib.url = "github:nix-community/nixpkgs.lib";
};
outputs = inputs: let
rensa = import ./lib {
inherit (inputs.nixpkgs) lib;
inherit (inputs.nixpkgs-lib) lib;
};
in
rensa.buildWith {

View file

@ -3,9 +3,7 @@
nixpkgs-lib.url = "github:nix-community/nixpkgs.lib";
};
outputs = inputs: {
lib = import ./. {
inherit (inputs.nixpkgs-lib) lib;
};
outputs = inputs: import ./. {
inherit (inputs.nixpkgs-lib) lib;
};
}