Merge pull request #34453 from layus/dafny-update

dafny: 1.9.8 -> 2.1.0

Changed files
+10 -3
pkgs
+10 -3
pkgs/top-level/dotnet-packages.nix
···
Dafny = buildDotnetPackage rec {
baseName = "Dafny";
-
version = "1.9.8";
+
version = "2.1.0";
src = fetchurl {
url = "https://github.com/Microsoft/dafny/archive/v${version}.tar.gz";
-
sha256 = "0n4pk4cv7d2zsn4xmyjlxvpfl9avq79r06c7kzmrng24p3k4qj6s";
+
sha256 = "1iyhy0zpi6wvqif7826anzgdipgsy5bk775ds9qqwfw27j7x6fy5";
};
+
postPatch = ''
+
sed -i \
+
-e 's/ Visible="False"//' \
+
-e "s/Exists(\$(CodeContractsInstallDir))/Exists('\$(CodeContractsInstallDir)')/" \
+
Source/*/*.csproj
+
'';
+
preBuild = ''
ln -s ${pkgs.z3} Binaries/z3
'';
···
buildInputs = [ Boogie ];
xBuildFiles = [ "Source/Dafny.sln" ];
-
xBuildFlags = [ ];
+
xBuildFlags = [ "/p:Configuration=Checked" "/p:Platform=Any CPU" "/t:Rebuild" ];
outputFiles = [ "Binaries/*" ];