diff --git a/pkgs/development/compilers/obliv-c/default.nix b/pkgs/development/compilers/obliv-c/default.nix index f1f9a38a198..1d9d973572c 100644 --- a/pkgs/development/compilers/obliv-c/default.nix +++ b/pkgs/development/compilers/obliv-c/default.nix @@ -1,15 +1,20 @@ {stdenv, fetchurl, ocaml, libgcrypt, fetchFromGitHub, ocamlPackages, perl}: stdenv.mkDerivation rec { name = "obliv-c-${version}"; - version = "0.0pre20161001"; + version = "0.0pre20170827"; buildInputs = [ ocaml ocamlPackages.findlib perl ]; propagatedBuildInputs = [ libgcrypt ]; src = fetchFromGitHub { owner = "samee"; repo = "obliv-c"; - rev = "32d71fb46983aded604045e8cda7874d8fb160a2"; - sha256 = "05bicvalsfabngvf41q02bcyzkibmyihj7naqd53kdq75xa1yf37"; + rev = "9a6be5a5f44d341bc357055e11922f6a4c4c3b65"; + sha256 = "0jz2ayadx62zv2b5ji947bkvw63axl4a2q70lwli86zgmcl390gf"; }; + + preBuild = '' + patchShebangs . + ''; + preInstall = '' mkdir -p "$out/bin" cp bin/* "$out/bin" @@ -23,6 +28,7 @@ stdenv.mkDerivation rec { gcc $(ar t _build/libobliv.a | sed -e 's@^@_build/@') --shared -o _build/libobliv.so cp _build/lib*.a _build/lib*.so* "$out/lib" ''; + meta = { inherit version; description = ''A GCC wrapper that makes it easy to embed secure computation protocols inside regular C programs'';