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
332
Dafny = buildDotnetPackage rec {
333
baseName = "Dafny";
334
-
version = "1.9.8";
335
336
src = fetchurl {
337
url = "https://github.com/Microsoft/dafny/archive/v${version}.tar.gz";
338
-
sha256 = "0n4pk4cv7d2zsn4xmyjlxvpfl9avq79r06c7kzmrng24p3k4qj6s";
339
};
340
0
0
0
0
0
0
0
341
preBuild = ''
342
ln -s ${pkgs.z3} Binaries/z3
343
'';
···
345
buildInputs = [ Boogie ];
346
347
xBuildFiles = [ "Source/Dafny.sln" ];
348
-
xBuildFlags = [ ];
349
350
outputFiles = [ "Binaries/*" ];
351
···
331
332
Dafny = buildDotnetPackage rec {
333
baseName = "Dafny";
334
+
version = "2.1.0";
335
336
src = fetchurl {
337
url = "https://github.com/Microsoft/dafny/archive/v${version}.tar.gz";
338
+
sha256 = "1iyhy0zpi6wvqif7826anzgdipgsy5bk775ds9qqwfw27j7x6fy5";
339
};
340
341
+
postPatch = ''
342
+
sed -i \
343
+
-e 's/ Visible="False"//' \
344
+
-e "s/Exists(\$(CodeContractsInstallDir))/Exists('\$(CodeContractsInstallDir)')/" \
345
+
Source/*/*.csproj
346
+
'';
347
+
348
preBuild = ''
349
ln -s ${pkgs.z3} Binaries/z3
350
'';
···
352
buildInputs = [ Boogie ];
353
354
xBuildFiles = [ "Source/Dafny.sln" ];
355
+
xBuildFlags = [ "/p:Configuration=Checked" "/p:Platform=Any CPU" "/t:Rebuild" ];
356
357
outputFiles = [ "Binaries/*" ];
358