1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-24 22:50:49 +00:00
nixpkgs/pkgs/development/tools/misc/swig/3.x.nix
2015-09-22 11:59:39 +02:00

35 lines
943 B
Nix

{ lib, stdenv, fetchFromGitHub, autoconf, automake, libtool, bison, pcre }:
stdenv.mkDerivation rec {
name = "swig-${version}";
version = "3.0.7";
src = fetchFromGitHub {
owner = "swig";
repo = "swig";
rev = "rel-${version}";
sha256 = "18zp9546d5xfq88nyykk5v3hh0iyp8r59i2ridbavxn3z914mhyv";
};
nativeBuildInputs = [ autoconf automake libtool bison ];
buildInputs = [ pcre ];
postPatch = ''
# Disable ccache documentation as it need yodl
sed -i '/man1/d' CCache/Makefile.in
'';
preConfigure = ''
./autogen.sh
'';
meta = {
description = "SWIG, an interface compiler that connects C/C++ code to higher-level languages";
homepage = http://swig.org/;
# Licensing is a mess: http://www.swig.org/Release/LICENSE .
license = "BSD-style";
platforms = lib.platforms.linux ++ lib.platforms.darwin;
maintainers = [ lib.maintainers.urkud lib.maintainers.wkennington ];
};
}