diff --git a/lib.nix b/lib.nix index 2aea27ab9..ed8616e20 100644 --- a/lib.nix +++ b/lib.nix @@ -1,4 +1,4 @@ -{ lib, pkgs, stdenv }: +{ lib, pkgs, ... }: let inherit (import ./semver.nix { inherit lib ireplace; }) satisfiesSemver; inherit (builtins) genList length; diff --git a/mk-poetry-dep.nix b/mk-poetry-dep.nix index 47aa37e15..02500c378 100644 --- a/mk-poetry-dep.nix +++ b/mk-poetry-dep.nix @@ -44,7 +44,6 @@ pythonPackages.callPackage isCompatibleEgg = fname: ! lib.strings.hasSuffix ".egg" fname || lib.strings.hasSuffix "py${python.pythonVersion}.egg" fname; in builtins.filter (f: matchesVersion f.file && hasSupportedExtension f.file && isCompatibleEgg f.file) files; - toPath = s: pwd + "/${s}"; isLocked = lib.length fileCandidates > 0; isSource = source != null; isGit = isSource && source.type == "git"; @@ -53,7 +52,7 @@ pythonPackages.callPackage isDirectory = isSource && source.type == "directory"; isFile = isSource && source.type == "file"; isLegacy = isSource && source.type == "legacy"; - localDepPath = toPath source.url; + localDepPath = pwd + "/${source.url}"; buildSystemPkgs = let diff --git a/templates/app/flake.nix b/templates/app/flake.nix index b99f0dee5..9f7604aa5 100644 --- a/templates/app/flake.nix +++ b/templates/app/flake.nix @@ -1,11 +1,13 @@ { description = "Application packaged using poetry2nix"; - inputs.flake-utils.url = "github:numtide/flake-utils"; - inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable"; - inputs.poetry2nix = { - url = "github:nix-community/poetry2nix"; - inputs.nixpkgs.follows = "nixpkgs"; + inputs = { + flake-utils.url = "github:numtide/flake-utils"; + nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable"; + poetry2nix = { + url = "github:nix-community/poetry2nix"; + inputs.nixpkgs.follows = "nixpkgs"; + }; }; outputs = { self, nixpkgs, flake-utils, poetry2nix }: diff --git a/tests/awscli/default.nix b/tests/awscli/default.nix index 073a384b8..5ceae1e8a 100644 --- a/tests/awscli/default.nix +++ b/tests/awscli/default.nix @@ -1,4 +1,4 @@ -{ poetry2nix, runCommand }: +{ poetry2nix }: poetry2nix.mkPoetryApplication { projectDir = ./.; } diff --git a/tests/bcrypt/default.nix b/tests/bcrypt/default.nix index b6765f2d9..79c92e233 100644 --- a/tests/bcrypt/default.nix +++ b/tests/bcrypt/default.nix @@ -1,4 +1,4 @@ -{ lib, poetry2nix, runCommand }: +{ lib, poetry2nix }: poetry2nix.mkPoetryApplication { pyproject = ./pyproject.toml; poetrylock = ./poetry.lock; diff --git a/tests/grpcio-wheel/default.nix b/tests/grpcio-wheel/default.nix index b5db25770..609d23419 100644 --- a/tests/grpcio-wheel/default.nix +++ b/tests/grpcio-wheel/default.nix @@ -1,4 +1,4 @@ -{ poetry2nix, python3, pkgs, runCommand }: +{ poetry2nix, python3, pkgs }: let inherit (pkgs.stdenv) isLinux; env = poetry2nix.mkPoetryEnv { diff --git a/tests/markdown-it-py-wheel/default.nix b/tests/markdown-it-py-wheel/default.nix index 2786772ca..42d8443e2 100644 --- a/tests/markdown-it-py-wheel/default.nix +++ b/tests/markdown-it-py-wheel/default.nix @@ -1,4 +1,4 @@ -{ poetry2nix, python3, pkgs, runCommand }: +{ poetry2nix, python3, pkgs }: let inherit (pkgs.stdenv) isLinux; env = poetry2nix.mkPoetryEnv {