2015-09-03 07:16:53 +02:00
|
|
|
{ stdenv, fetchFromGitHub }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
name = "dclxvi-2013-01-27";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "agl";
|
|
|
|
repo = "dclxvi";
|
|
|
|
rev = "74009d58f2305be3b95d88717619bde8ecbdd9a2";
|
|
|
|
sha256 = "1kx4h8iv7yb30c6zjmj8zs9x12vxhi0jwkiwxsxj9swf6bww6p1g";
|
|
|
|
};
|
|
|
|
|
|
|
|
buildFlags = [ "libdclxvipairing.so" ];
|
|
|
|
|
2016-08-12 05:16:25 +02:00
|
|
|
patchPhase = ''
|
|
|
|
substituteInPlace Makefile \
|
|
|
|
--replace "gcc" "cc"
|
|
|
|
'' + stdenv.lib.optionalString stdenv.isDarwin ''
|
|
|
|
substituteInPlace Makefile \
|
|
|
|
--replace "-soname=libdclxvipairing.so" "-install_name,libdclxvipairing.so"
|
|
|
|
'';
|
|
|
|
|
2015-09-03 07:16:53 +02:00
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/{include,lib}
|
|
|
|
find . -name \*.h -exec cp {} $out/include \;
|
|
|
|
find . -name \*.so -exec cp {} $out/lib \;
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
2017-08-01 22:03:30 +02:00
|
|
|
homepage = https://github.com/agl/dclxvi;
|
2015-09-03 07:16:53 +02:00
|
|
|
description = "Naehrig, Niederhagen and Schwabe's pairings code, massaged into a shared library";
|
|
|
|
maintainers = with maintainers; [ wkennington ];
|
2015-09-05 10:35:13 +02:00
|
|
|
platforms = platforms.x86_64;
|
2015-09-03 07:16:53 +02:00
|
|
|
};
|
|
|
|
}
|