Skip to content

Commit 4b54eee

Browse files
committed
build: add wheel derivation
1 parent 1d10010 commit 4b54eee

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

flake.nix

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
url = "github:cachix/git-hooks.nix";
77
inputs.nixpkgs.follows = "nixpkgs";
88
};
9+
910
pyproject = {
1011
url = "github:pyproject-nix/pyproject.nix";
1112
inputs.nixpkgs.follows = "nixpkgs";
@@ -43,7 +44,7 @@
4344
python = pkgs."python${getPythonVersion}";
4445
arg =
4546
project.renderers.withPackages {
46-
inherit python;
47+
inherit python project;
4748
groups = ["test"];
4849
};
4950

@@ -66,9 +67,10 @@
6667
packages =
6768
forAllSystems (system: pkgs: let
6869
python = pkgs."python${getPythonVersion}";
69-
attrs = project.renderers.buildPythonPackage {inherit python;};
70-
in {
70+
attrs = project.renderers.buildPythonPackage {inherit python project;};
71+
in rec {
7172
default = python.pkgs.buildPythonPackage attrs;
73+
wheel = default.dist;
7274
});
7375

7476
apps =

0 commit comments

Comments
 (0)