mirror of
https://gitlab.com/rensa-nix/core.git
synced 2025-12-10 21:30:08 +01:00
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:
parent
c9c329ec0f
commit
7222ac48cd
3 changed files with 21 additions and 6 deletions
18
flake.lock
generated
18
flake.lock
generated
|
|
@ -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"
|
||||
}
|
||||
}
|
||||
},
|
||||
|
|
|
|||
|
|
@ -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 {
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue