f5fa5fa4d6
* pkgs: refactor needless quoting of homepage meta attribute A lot of packages are needlessly quoting the homepage meta attribute (about 1400, 22%), this commit refactors all of those instances. * pkgs: Fixing some links that were wrongfully unquoted in the previous commit * Fixed some instances
35 lines
999 B
Nix
35 lines
999 B
Nix
{ stdenv, fetchFromGitHub }:
|
|
|
|
stdenv.mkDerivation {
|
|
name = "dclxvi-2013-01-27";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "agl";
|
|
repo = "dclxvi";
|
|
rev = "74009d58f2305be3b95d88717619bde8ecbdd9a2";
|
|
sha256 = "1kx4h8iv7yb30c6zjmj8zs9x12vxhi0jwkiwxsxj9swf6bww6p1g";
|
|
};
|
|
|
|
buildFlags = [ "libdclxvipairing.so" ];
|
|
|
|
patchPhase = ''
|
|
substituteInPlace Makefile \
|
|
--replace "gcc" "cc"
|
|
'' + stdenv.lib.optionalString stdenv.isDarwin ''
|
|
substituteInPlace Makefile \
|
|
--replace "-soname=libdclxvipairing.so" "-install_name,libdclxvipairing.so"
|
|
'';
|
|
|
|
installPhase = ''
|
|
mkdir -p $out/{include,lib}
|
|
find . -name \*.h -exec cp {} $out/include \;
|
|
find . -name \*.so -exec cp {} $out/lib \;
|
|
'';
|
|
|
|
meta = with stdenv.lib; {
|
|
homepage = https://github.com/agl/dclxvi;
|
|
description = "Naehrig, Niederhagen and Schwabe's pairings code, massaged into a shared library";
|
|
maintainers = with maintainers; [ wkennington ];
|
|
platforms = platforms.x86_64;
|
|
};
|
|
}
|