From 7d59e09968e0b08b574d2a4f4d60e3b3d69f6086 Mon Sep 17 00:00:00 2001 From: xeals Date: Wed, 7 Dec 2022 13:06:25 +1100 Subject: [PATCH] flake: fix missing setuptools imports --- flake.nix | 20 ++++++++++++++++---- 1 file changed, 16 insertions(+), 4 deletions(-) diff --git a/flake.nix b/flake.nix index 18f5925..90cea99 100644 --- a/flake.nix +++ b/flake.nix @@ -9,10 +9,22 @@ overlay = nixpkgs.lib.composeManyExtensions [ poetry2nix.overlay (final: prev: { - frontpage = prev.poetry2nix.mkPoetryApplication { - python = prev.python39; - projectDir = ./.; - }; + frontpage = prev.poetry2nix.mkPoetryApplication + { + python = prev.python39; + projectDir = ./.; + overrides = + prev.poetry2nix.overrides.withDefaults (final_: prev_: + nixpkgs.lib.listToAttrs + (builtins.map + (name: { + inherit name; + value = prev_."${name}".overridePythonAttrs (old: { + nativeBuildInputs = (old.nativeBuildInputs or [ ]) ++ [ final_.setuptools ]; + }); + }) + [ "beaker" "flask-pyoidc-oda" "oic" ])); + }; }) ];