chore(flake): pass pkgs via attributes parameter
This commit is contained in:
@@ -14,9 +14,12 @@
|
|||||||
nixpkgs.lib.genAttrs systems (system: let
|
nixpkgs.lib.genAttrs systems (system: let
|
||||||
pkgs = import nixpkgs {inherit system;};
|
pkgs = import nixpkgs {inherit system;};
|
||||||
in
|
in
|
||||||
f system pkgs);
|
f {
|
||||||
|
inherit (pkgs) lib stdenv;
|
||||||
|
inherit pkgs;
|
||||||
|
});
|
||||||
in {
|
in {
|
||||||
devShells = forAllSystems (system: pkgs: {
|
devShells = forAllSystems ({pkgs, ...}: {
|
||||||
default = pkgs.mkShell {
|
default = pkgs.mkShell {
|
||||||
CGO_ENABLED = "0";
|
CGO_ENABLED = "0";
|
||||||
hardeningDisable = ["all"];
|
hardeningDisable = ["all"];
|
||||||
|
|||||||
Reference in New Issue
Block a user