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