3
0
Fork 0
forked from mirrors/nixpkgs

Converted Socat package to uilderDefsPackage format

svn path=/nixpkgs/trunk/; revision=11765
This commit is contained in:
Michael Raskin 2008-05-07 07:22:04 +00:00
parent c3e2c90fb6
commit cfff8a9c1a
2 changed files with 36 additions and 47 deletions

View file

@ -1,35 +1,25 @@
args : with args; with builderDefs {src="";} null; args : with args;
let localDefs = builderDefs (rec { rec {
src = /* put a fetchurl here */ src = /* Here a fetchurl expression goes */
fetchurl { fetchurl {
url = http://www.dest-unreach.org/socat/download/socat-1.6.0.0.tar.bz2; url = http://www.dest-unreach.org/socat/download/socat-1.6.0.1.tar.bz2;
sha256 = "1j01iazwfr63q71cfcfzrdz8digqlg3ldhlbb72yl5mn9awr0w0m"; sha256 = "1cl7kf0rnbvjxz8vdkmdh1crd069qmz1jjw40r8bydgpn0nsh6qd";
}; };
patches = [
(fetchurl { buildInputs = [openssl];
url = http://www.dest-unreach.org/socat/contrib/socat-servicenames.patch; configureFlags = [];
sha256 = "1r8zd6mk257n01i34i5syxl2k6fr35nlr7bqs9sfc79irjl62z66";
}) /* doConfigure should be specified separately */
(fetchurl { phaseNames = ["doPatch" "doConfigure" "doMakeInstall"];
url = http://www.dest-unreach.org/socat/contrib/socat-maxfds.patch.gz;
sha256 = "0fsn0k0qsrdbjbhj09a6kxfsxb7yhxs4cad26znd9naginsj7pxa"; name = "socat-" + version;
}) meta = {
]; description = "Socat - a different replacement for netcat";
buildInputs = [openssl]; longDesc = "
configureFlags = [];
}) null; /* null is a terminator for sumArgs */
in with localDefs;
stdenv.mkDerivation rec {
name = "socat-"+version;
builder = writeScript (name + "-builder")
(textClosure localDefs
[doPatch doConfigure doMakeInstall doForceShare doPropagate]);
meta = {
description = "
Socat, one more analogue of netcat, but not mimicking it. Socat, one more analogue of netcat, but not mimicking it.
'netcat++' (extended design, new implementation) 'netcat++' (extended design, new implementation)
"; ";
homepage = "http://www.dest-unreach.org/socat/"; homepage = "http://www.dest-unreach.org/socat/";
inherit src; srcs = patches;
}; };
} }

View file

@ -1,26 +1,25 @@
args : with args; with builderDefs {src="";} null; args : with args;
let localDefs = builderDefs (rec { rec {
src = /* put a fetchurl here */ src = /* Here a fetchurl expression goes */
fetchurl { fetchurl {
url = http://www.dest-unreach.org/socat/download/socat-2.0.0-b1.tar.bz2; url = http://www.dest-unreach.org/socat/download/socat-2.0.0-b1.tar.bz2;
sha256 = "0ybd5fw22icl10r33k987rskh9gvysm1jph90a1pfdjj57cy44fk"; sha256 = "0ybd5fw22icl10r33k987rskh9gvysm1jph90a1pfdjj57cy44fk";
}; };
buildInputs = [openssl]; buildInputs = [openssl];
configureFlags = []; configureFlags = [];
}) null; /* null is a terminator for sumArgs */
in with localDefs; /* doConfigure should be specified separately */
stdenv.mkDerivation rec { phaseNames = ["doPatch" "doConfigure" "doMakeInstall"];
name = "socat-"+version;
builder = writeScript (name + "-builder") name = "socat-" + version;
(textClosure localDefs meta = {
[doPatch doConfigure doMakeInstall doForceShare doPropagate]); description = "Socat - a different replacement for netcat";
meta = { longDesc = "
description = "
Socat, one more analogue of netcat, but not mimicking it. Socat, one more analogue of netcat, but not mimicking it.
'netcat++' (extended design, new implementation) 'netcat++' (extended design, new implementation)
"; ";
homepage = "http://www.dest-unreach.org/socat/"; homepage = "http://www.dest-unreach.org/socat/";
inherit src; srcs = patches;
}; };
} }