From 06c6c9e0b10d147c6b03a15b993dcaaaaa527e21 Mon Sep 17 00:00:00 2001 From: Harry Callahan Date: Wed, 3 Jan 2024 14:18:32 +0000 Subject: [PATCH] Move poetryOverrides to outputs.lib This prevents the flake check warning about unknown outputs, using lib is a community convention for misc outputs. --- flake.nix | 2 +- poetryOverrides.nix => lib/poetryOverrides.nix | 0 pkgs/python_ot/default.nix | 2 +- 3 files changed, 2 insertions(+), 2 deletions(-) rename poetryOverrides.nix => lib/poetryOverrides.nix (100%) diff --git a/flake.nix b/flake.nix index 166c02b..06f2c9d 100644 --- a/flake.nix +++ b/flake.nix @@ -19,7 +19,7 @@ ... } @ inputs: let no_system_outputs = { - poetryOverrides = import ./poetryOverrides.nix; + lib.poetryOverrides = import ./lib/poetryOverrides.nix; }; all_system_outputs = flake-utils.lib.eachDefaultSystem (system: let diff --git a/poetryOverrides.nix b/lib/poetryOverrides.nix similarity index 100% rename from poetryOverrides.nix rename to lib/poetryOverrides.nix diff --git a/pkgs/python_ot/default.nix b/pkgs/python_ot/default.nix index b980327..6f01c29 100644 --- a/pkgs/python_ot/default.nix +++ b/pkgs/python_ot/default.nix @@ -8,7 +8,7 @@ ... }: let poetry2nix = inputs.poetry2nix.lib.mkPoetry2Nix {inherit pkgs;}; - poetryOverrides = inputs.self.poetryOverrides {inherit pkgs;}; + poetryOverrides = inputs.self.lib.poetryOverrides {inherit pkgs;}; in poetry2nix.mkPoetryEnv { projectDir = ./.;