diff --git a/python/default.nix b/python/default.nix index 6eeed48128df..43410878636c 100644 --- a/python/default.nix +++ b/python/default.nix @@ -81,7 +81,7 @@ python.pkgs.buildPythonPackage { exampleEnv = python.withPackages (p: [ nix.python-bindings ]); tests = { example-buildPythonApplication = import ./examples/buildPythonApplication { - inherit nix system testScripts; + inherit nix system testScripts python; }; }; shell = mkShell { diff --git a/python/examples/buildPythonApplication/default.nix b/python/examples/buildPythonApplication/default.nix index 96fac6b9b19d..21194be5c3cb 100644 --- a/python/examples/buildPythonApplication/default.nix +++ b/python/examples/buildPythonApplication/default.nix @@ -8,11 +8,11 @@ overlays = []; inherit system; }, + python ? pkgs.python3, nix ? (import ../../..).default, testScripts, }: let - python = pkgs.python3; nixBindings = nix.python-bindings.override { inherit python; }; in python.pkgs.buildPythonApplication { pname = "hello-nix";