Skip to content

Commit

Permalink
overrides.platformdirs: Add hatch-vcs
Browse files Browse the repository at this point in the history
  • Loading branch information
adisbladis committed Apr 23, 2022
1 parent 80c070d commit 8cfd980
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions overrides/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ let
{ self
, drv
, attr
, extraAttrs ? [ ]
}:
let
buildSystem = if attr == "cython" then self.python.pythonForBuild.pkgs.cython else self.${attr};
Expand All @@ -23,7 +24,7 @@ let
{ }
else
{
nativeBuildInputs = (old.nativeBuildInputs or [ ]) ++ [ self.${attr} ];
nativeBuildInputs = (old.nativeBuildInputs or [ ]) ++ [ self.${attr} ] ++ map (a: self.${a}) extraAttrs;
}
)
);
Expand Down Expand Up @@ -60,7 +61,7 @@ lib.composeManyExtensions [

platformdirs =
if lib.versionAtLeast super.platformdirs.version "2.5.2"
then addBuildSystem { inherit self; drv = super.platformdirs; attr = "hatchling"; }
then addBuildSystem { inherit self; drv = super.platformdirs; attr = "hatchling"; extraAttrs = [ "hatch-vcs" ]; }
else super.platformdirs;

})
Expand Down

0 comments on commit 8cfd980

Please sign in to comment.