mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-18 13:19:10 +03:00
obliv-c: 0.0pre20161001 -> 0.0pre20170827
This commit is contained in:
parent
ccd255776e
commit
371a2ee707
@ -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'';
|
||||
|
Loading…
Reference in New Issue
Block a user