nixpkgs/pkgs/development/tools/misc/swig/default.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

27 lines
767 B
Nix

{ stdenv, fetchurl, boost, tcl }:
stdenv.mkDerivation rec {
pname = "swig";
version = "1.3.40";
src = fetchurl {
url = "mirror://sourceforge/swig/${pname}-${version}.tar.gz";
sha256 = "02dc8g8wy75nd2is1974rl24c6mdl0ai1vszs1xpg9nd7dlv6i8r";
};
doCheck = !stdenv.isCygwin;
# 'make check' uses boost and tcl
buildInputs = stdenv.lib.optionals doCheck [ boost tcl ];
configureFlags = [ "--disable-ccache" ];
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;
};
}