Skip to content

Commit

Permalink
fetch z3 with nix so it works with nixos
Browse files Browse the repository at this point in the history
  • Loading branch information
MasseGuillaume authored and samarion committed Jun 19, 2017
1 parent 23c7205 commit 1394fbe
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# Stainless
/bin/stainless-*


# Vim
*.swp

Expand Down Expand Up @@ -53,7 +57,6 @@ out-classes
/travis/builds

# Windows
/bin/
/cvc4.exe
/libz3.dll
/libz3.lib
Expand Down
5 changes: 5 additions & 0 deletions bin/nix-run
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/usr/bin/env bash

HERE="`dirname $0`"

nix-shell $HERE/stainless.nix -A stainlessEnv
17 changes: 17 additions & 0 deletions bin/stainless.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
let
pkgs = import <nixpkgs> {};
stdenv = pkgs.stdenv;
in rec {
stainlessEnv = stdenv.mkDerivation rec {
name = "stainless-env";
shellHook = ''
alias cls=clear
'';
buildInputs = with pkgs; [
stdenv
sbt
openjdk
z3
];
};
}

0 comments on commit 1394fbe

Please sign in to comment.