diff --git a/.envrc b/.envrc new file mode 100644 index 0000000..3550a30 --- /dev/null +++ b/.envrc @@ -0,0 +1 @@ +use flake diff --git a/.gitignore b/.gitignore index b2be92b..726d2d6 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ result +.direnv diff --git a/flake.nix b/flake.nix index 9bf068f..9cb2c39 100644 --- a/flake.nix +++ b/flake.nix @@ -11,8 +11,12 @@ pkgs = nixpkgs.legacyPackages.${system}; pythonPackages = pkgs.python312Packages; python-path = pkgs.python3Packages.buildPythonPackage rec { - pname = "path"; + # pname = "opencv-python"; + # version = "4.10.0.84"; + version = "16.14.0"; + pname = "path"; + pyproject = true; # disabled = pythonOlder "3.7"; @@ -20,6 +24,7 @@ src = pkgs.python3Packages.fetchPypi { inherit pname version; hash = "sha256-26qn79RgL9a6jYKJDceCPWnl3nQKboQtmRmw+q8rao4="; + # hash = ""; }; nativeBuildInputs = @@ -46,10 +51,10 @@ }; }; + env = pkgs.python312.withPackages (ps: [ python-path ]); + in { - packages = { - default = pkgs.python312Packages.path; - python-path = python-path; - }; + packages = { default = pkgs.python312Packages.path; }; + devShells.default = pkgs.mkShell { buildInputs = with pkgs; [ env ]; }; }); }