diff --git a/flake.nix b/flake.nix index 94d580346..09109897e 100644 --- a/flake.nix +++ b/flake.nix @@ -72,11 +72,14 @@ let pkgs = import nixpkgs { inherit system; - config.allowAliases = false; + config = { + allowAliases = false; + allowInsecure = true; + }; }; poetry2nix = import ./default.nix { inherit pkgs; }; - p2nix-tools = pkgs.callPackage ./tools { }; + p2nix-tools = pkgs.callPackage ./tools { inherit poetry2nix; }; in rec { formatter = treefmtEval.${system}.config.build.wrapper; diff --git a/tools/default.nix b/tools/default.nix index 8e675b819..2759874d3 100644 --- a/tools/default.nix +++ b/tools/default.nix @@ -1,9 +1,4 @@ -{ pkgs ? import { - overlays = [ - (import ../overlay.nix) - ]; - } -}: +{ pkgs, poetry2nix }: let inherit (pkgs) lib; @@ -36,7 +31,7 @@ in flamegraph.pl $workdir/traceFile.folded > poetry2nix-flamegraph.svg ''; - env = pkgs.poetry2nix.mkPoetryEnv { + env = poetry2nix.mkPoetryEnv { projectDir = ./.; };