1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-20 12:42:24 +00:00

Fixed stable socat (applied patch by Nicolas Pierron); updated Tk installation step for XMaxima compatibility

svn path=/nixpkgs/trunk/; revision=10482
This commit is contained in:
Michael Raskin 2008-02-03 14:17:22 +00:00
parent f763d29010
commit 540214e9fd
5 changed files with 30 additions and 32 deletions

View file

@ -0,0 +1,18 @@
args: with args;
stdenv.mkDerivation {
name = "tk-${version}";
src = fetchurl {
url = "mirror://sourceforge/tcl/tk${version}-src.tar.gz";
sha256 = "0cciavzd05bpm5yfppid0s0vsf8kabwia9620vgvi26sv1gjgwhb";
};
postInstall = ''
echo -e '#! /bin/sh \n $( readlink -f $( which wish${__substring 0 3 version}) ) "$@"' >$out/bin/wish
chmod a+x $out/bin/wish
'';
configureFlags="--with-tcl=${tcl}/lib";
preConfigure = "cd unix";
buildInputs = [tcl x11];
inherit tcl;
}

View file

@ -1,10 +0,0 @@
source $stdenv/setup
configureFlags="--with-tcl=$tcl/lib"
preConfigure() {
cd unix
}
preConfigure=preConfigure
genericBuild

View file

@ -1,12 +0,0 @@
{stdenv, fetchurl, tcl, x11}:
stdenv.mkDerivation {
name = "tk-8.4.16";
builder = ./builder.sh;
src = fetchurl {
url = mirror://sourceforge/tcl/tk8.4.16-src.tar.gz;
sha256 = "0cciavzd05bpm5yfppid0s0vsf8kabwia9620vgvi26sv1gjgwhb";
};
buildInputs = [tcl x11];
inherit tcl;
}

View file

@ -6,15 +6,14 @@ args : with args; with builderDefs {src="";} null;
sha256 = "1j01iazwfr63q71cfcfzrdz8digqlg3ldhlbb72yl5mn9awr0w0m";
};
patches = [
fetchurl {
url = http://www.dest-unreach.org/socat/contrib/socat-servicenames.patch;
sha256 = "1r8zd6mk257n01i34i5syxl2k6fr35nlr7bqs9sfc79irjl62z66";
};
fetchurl {
url = http://www.dest-unreach.org/socat/contrib/socat-maxfds.patch.gz;
sha256 = "0fsn0k0qsrdbjbhj09a6kxfsxb7yhxs4cad26znd9naginsj7pxa";
};
(fetchurl {
url = http://www.dest-unreach.org/socat/contrib/socat-servicenames.patch;
sha256 = "1r8zd6mk257n01i34i5syxl2k6fr35nlr7bqs9sfc79irjl62z66";
})
(fetchurl {
url = http://www.dest-unreach.org/socat/contrib/socat-maxfds.patch.gz;
sha256 = "0fsn0k0qsrdbjbhj09a6kxfsxb7yhxs4cad26znd9naginsj7pxa";
})
];
buildInputs = [openssl];
configureFlags = [];

View file

@ -2660,10 +2660,13 @@ rec {
qt = qt4;
};
tk = import ../development/libraries/tk {
tkFun = lib.sumArgs (selectVersion ../development/libraries/tk) {
inherit fetchurl stdenv tcl x11;
version = "8.4.16";
};
tk = tkFun null;
unixODBC = import ../development/libraries/unixODBC {
inherit fetchurl stdenv;
};