dafny: fix build by simulating gradle
This commit is contained in:
parent
4025de0789
commit
a3c2acc931
@ -183,6 +183,14 @@ let self = dotnetPackages // overrides; dotnetPackages = with self; {
|
||||
sha256 = "1knv6zvpq0bnngmlwkcqgjpdkqsgbiihs6a0cycb8ssn18s4ippr";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
cp ${pkgs.writeScript "fake-gradlew-for-dafny" ''
|
||||
mkdir -p build/libs/
|
||||
javac $(find -name "*.java" | grep "^./src/main") -d classes
|
||||
jar cf build/libs/DafnyRuntime.jar -C classes dafny
|
||||
''} Source/DafnyRuntime/DafnyRuntimeJava/gradlew
|
||||
'';
|
||||
|
||||
preBuild = ''
|
||||
ln -s ${pkgs.z3} Binaries/z3
|
||||
'';
|
||||
|
Loading…
Reference in New Issue
Block a user