tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
dafny: 1.9.8 -> 2.1.0
Guillaume Maudoux
8 years ago
e565dd8f
fefa9ef7
+10
-3
1 changed file
expand all
collapse all
unified
split
pkgs
top-level
dotnet-packages.nix
+10
-3
pkgs/top-level/dotnet-packages.nix
···
331
331
332
332
Dafny = buildDotnetPackage rec {
333
333
baseName = "Dafny";
334
334
-
version = "1.9.8";
334
334
+
version = "2.1.0";
335
335
336
336
src = fetchurl {
337
337
url = "https://github.com/Microsoft/dafny/archive/v${version}.tar.gz";
338
338
-
sha256 = "0n4pk4cv7d2zsn4xmyjlxvpfl9avq79r06c7kzmrng24p3k4qj6s";
338
338
+
sha256 = "1iyhy0zpi6wvqif7826anzgdipgsy5bk775ds9qqwfw27j7x6fy5";
339
339
};
340
340
341
341
+
postPatch = ''
342
342
+
sed -i \
343
343
+
-e 's/ Visible="False"//' \
344
344
+
-e "s/Exists(\$(CodeContractsInstallDir))/Exists('\$(CodeContractsInstallDir)')/" \
345
345
+
Source/*/*.csproj
346
346
+
'';
347
347
+
341
348
preBuild = ''
342
349
ln -s ${pkgs.z3} Binaries/z3
343
350
'';
···
345
352
buildInputs = [ Boogie ];
346
353
347
354
xBuildFiles = [ "Source/Dafny.sln" ];
348
348
-
xBuildFlags = [ ];
355
355
+
xBuildFlags = [ "/p:Configuration=Checked" "/p:Platform=Any CPU" "/t:Rebuild" ];
349
356
350
357
outputFiles = [ "Binaries/*" ];
351
358