Commit 831628ea authored by David McFarland's avatar David McFarland
Browse files

python3Packages.clr-loader: fix build

  NuGet.targets(174,5): error : '0.2.7.post0' is not a valid version string. (Parameter 'value')

Fixes: 91df8eec
parent 4ed6f0c2
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -20,6 +20,11 @@ let
    hash = "sha256-t6iz+PuxvLu2OC2IfiHRdC1PELXqIJ5K2VVo/pfhx8Y=";
  };
  patches = [ ./dotnet-8-upgrade.patch ];
  # This stops msbuild from picking up $version from the environment
  postPatch = ''
    echo '<Project><PropertyGroup><Version/></PropertyGroup></Project>' > \
      Directory.Build.props
  '';

  # This buildDotnetModule is used only to get nuget sources, the actual
  # build is done in `buildPythonPackage` below.
@@ -29,6 +34,7 @@ let
      version
      src
      patches
      postPatch
      ;
    projectFile = [
      "netfx_loader/ClrLoader.csproj"
@@ -44,6 +50,7 @@ buildPythonPackage {
    version
    src
    patches
    postPatch
    ;

  format = "pyproject";