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.
This commit is contained in:
Ben Hipple
2019-05-28 14:24:42 +00:00
parent 07dbc438cc
commit 072f4d61c0
3 changed files with 16 additions and 44 deletions
+2 -2
View File
@@ -1,7 +1,7 @@
{ stdenv, fetchFromGitHub, autoconf, automake, libtool, bison, pcre, buildPackages }:
stdenv.mkDerivation rec {
name = "swig-${version}";
pname = "swig";
version = "3.0.12";
src = fetchFromGitHub {
@@ -17,8 +17,8 @@ stdenv.mkDerivation rec {
configureFlags = [ "--without-tcl" ];
# Disable ccache documentation as it needs yodl
postPatch = ''
# Disable ccache documentation as it need yodl
sed -i '/man1/d' CCache/Makefile.in
'';