File tree Expand file tree Collapse file tree 2 files changed +7
-4
lines changed Expand file tree Collapse file tree 2 files changed +7
-4
lines changed Original file line number Diff line number Diff line change 8
8
{
9
9
# Nixpkgs overlay providing the application
10
10
overlay = nixpkgs . lib . composeManyExtensions [
11
- ( final : prev : {
11
+ ( final : prev : let
12
+ pyprojectFile = builtins . fromTOML ( builtins . readFile ./pyproject.toml ) ;
13
+ in {
12
14
# The application
13
- cosmo = final . callPackage ./package.nix { } ;
15
+ cosmo = final . callPackage ./package.nix { version = pyprojectFile . tool . poetry . version ; } ;
14
16
} )
15
17
] ;
16
18
} // ( flake-utils . lib . eachDefaultSystem ( system :
Original file line number Diff line number Diff line change 1
- { python3Packages , ... } :
1
+ { python3Packages , version , ... } :
2
2
3
3
python3Packages . buildPythonApplication rec {
4
+ inherit version ;
5
+
4
6
pname = "cosmo" ;
5
- version = "0.10.1" ;
6
7
pyproject = true ;
7
8
8
9
src = ./. ;
You can’t perform that action at this time.
0 commit comments