boogie: fix basename issues; promote to package

This commit is contained in:
Guillaume Maudoux 2017-02-06 22:41:01 +01:00
parent 714fdb425a
commit ccb2d83980
2 changed files with 6 additions and 3 deletions

View File

@ -17007,6 +17007,8 @@ with pkgs;
aspino = callPackage ../applications/science/logic/aspino {};
boogie = dotnetPackages.Boogie;
coq_8_3 = callPackage ../applications/science/logic/coq/8.3.nix {
make = pkgs.gnumake3;
inherit (ocamlPackages_3_12_1) ocaml findlib;

View File

@ -221,8 +221,9 @@ let self = dotnetPackages // overrides; dotnetPackages = with self; {
# SOURCE PACKAGES
Boogie = buildDotnetPackage rec {
baseName = "Boogie-unstable";
baseName = "Boogie";
version = "2017-01-03";
name = "${baseName}-unstable-${version}";
src = fetchFromGitHub {
owner = "boogie-org";
@ -238,8 +239,8 @@ let self = dotnetPackages // overrides; dotnetPackages = with self; {
outputFiles = [ "Binaries/*" ];
postInstall = ''
mkdir -pv "$out/lib/dotnet/Boogie"
ln -sv "${pkgs.z3}/bin/z3" "$out/lib/dotnet/Boogie/z3.exe"
mkdir -pv "$out/lib/dotnet/${baseName}"
ln -sv "${pkgs.z3}/bin/z3" "$out/lib/dotnet/${baseName}/z3.exe"
'';
meta = with stdenv.lib; {