From 2e5cf4294dc1889b3619668ad20eefc506660740 Mon Sep 17 00:00:00 2001 From: phaer Date: Sat, 13 Jul 2024 16:23:42 +0200 Subject: [PATCH] set paths.lockfile for pip example... even with the new default, it's good to be explicit. And the examples will still refer to the main branch while running ci checks for this --- .../python-local-development-multiple-packages/default.nix | 1 + examples/packages/languages/python-local-development/default.nix | 1 + examples/packages/languages/python-packaging-ansible/default.nix | 1 + .../languages/python-packaging-apache-airflow/default.nix | 1 + examples/packages/languages/python-packaging-odoo/default.nix | 1 + examples/packages/languages/python-packaging-pillow/default.nix | 1 + 6 files changed, 6 insertions(+) diff --git a/examples/packages/languages/python-local-development-multiple-packages/default.nix b/examples/packages/languages/python-local-development-multiple-packages/default.nix index f5d6bb54..24f8e116 100644 --- a/examples/packages/languages/python-local-development-multiple-packages/default.nix +++ b/examples/packages/languages/python-local-development-multiple-packages/default.nix @@ -32,6 +32,7 @@ in { "subpkg2" ]; + paths.lockFile = "lock.${config.deps.stdenv.system}.json"; pip = { requirementsList = [ "${config.paths.package}/subpkg1" diff --git a/examples/packages/languages/python-local-development/default.nix b/examples/packages/languages/python-local-development/default.nix index 9c875684..b22f00f1 100644 --- a/examples/packages/languages/python-local-development/default.nix +++ b/examples/packages/languages/python-local-development/default.nix @@ -36,6 +36,7 @@ in { ]; }; + paths.lockFile = "lock.${config.deps.stdenv.system}.json"; pip = { # Setting editables.$pkg.null will link the current project root as an editable # for the root package (my-tool here), or otherwise copy the contents of mkDerivation.src diff --git a/examples/packages/languages/python-packaging-ansible/default.nix b/examples/packages/languages/python-packaging-ansible/default.nix index 58ccf1f2..49557eab 100644 --- a/examples/packages/languages/python-packaging-ansible/default.nix +++ b/examples/packages/languages/python-packaging-ansible/default.nix @@ -21,6 +21,7 @@ ]; }; + paths.lockFile = "lock.${config.deps.stdenv.system}.json"; pip = { requirementsList = ["${config.name}==${config.version}"]; }; diff --git a/examples/packages/languages/python-packaging-apache-airflow/default.nix b/examples/packages/languages/python-packaging-apache-airflow/default.nix index b075bc60..79ef9f6b 100644 --- a/examples/packages/languages/python-packaging-apache-airflow/default.nix +++ b/examples/packages/languages/python-packaging-apache-airflow/default.nix @@ -43,6 +43,7 @@ in { ]; }; + paths.lockFile = "lock.${config.deps.stdenv.system}.json"; pip = { requirementsList = [ "apache-airflow" diff --git a/examples/packages/languages/python-packaging-odoo/default.nix b/examples/packages/languages/python-packaging-odoo/default.nix index 33960300..749d586b 100644 --- a/examples/packages/languages/python-packaging-odoo/default.nix +++ b/examples/packages/languages/python-packaging-odoo/default.nix @@ -32,6 +32,7 @@ in { inherit src; }; + paths.lockFile = "lock.${config.deps.stdenv.system}.json"; pip = { requirementsList = [ "${src}" diff --git a/examples/packages/languages/python-packaging-pillow/default.nix b/examples/packages/languages/python-packaging-pillow/default.nix index 55be6a82..8f9e93e6 100644 --- a/examples/packages/languages/python-packaging-pillow/default.nix +++ b/examples/packages/languages/python-packaging-pillow/default.nix @@ -39,6 +39,7 @@ ]; }; + paths.lockFile = "lock.${config.deps.stdenv.system}.json"; pip = { requirementsList = ["${config.name}==${config.version}"]; pipFlags = [