nixpkgs-suyu/pkgs/development/tools/misc/swig/3.x.nix
Ben Hipple 072f4d61c0 swig: use pname and standardize meta
- pname makes it easier to override the version in an overlay and looks generally cleaner
- Updated the meta sections to match between the various versions

No real functional change, just cleanup.
2019-05-28 14:24:42 +00:00

36 lines
987 B
Nix

{ stdenv, fetchFromGitHub, autoconf, automake, libtool, bison, pcre, buildPackages }:
stdenv.mkDerivation rec {
pname = "swig";
version = "3.0.12";
src = fetchFromGitHub {
owner = "swig";
repo = "swig";
rev = "rel-${version}";
sha256 = "1wyffskbkzj5zyhjnnpip80xzsjcr3p0q5486z3wdwabnysnhn8n";
};
PCRE_CONFIG = "${pcre.dev}/bin/pcre-config";
nativeBuildInputs = [ autoconf automake libtool bison ];
buildInputs = [ pcre ];
configureFlags = [ "--without-tcl" ];
# Disable ccache documentation as it needs yodl
postPatch = ''
sed -i '/man1/d' CCache/Makefile.in
'';
preConfigure = ''
./autogen.sh
'';
meta = with stdenv.lib; {
description = "SWIG, an interface compiler that connects C/C++ code to higher-level languages";
homepage = http://swig.org/;
# Different types of licenses available: http://www.swig.org/Release/LICENSE .
license = licenses.gpl3Plus;
platforms = with platforms; linux ++ darwin;
};
}