2015-09-15 05:27:19 +01:00
|
|
|
a @ { tcsh, mesa, lesstif, libX11, libXaw, xproto, libXt, libSM, libICE, libXmu, libXext, ... }:
|
|
|
|
let
|
2009-12-13 20:22:13 +00:00
|
|
|
fetchurl = a.fetchurl;
|
|
|
|
|
2015-09-15 05:27:19 +01:00
|
|
|
version = "20090809";
|
2009-12-13 20:22:13 +00:00
|
|
|
buildInputs = with a; [
|
2015-09-15 05:27:19 +01:00
|
|
|
tcsh libX11 libXaw lesstif xproto mesa libXt
|
|
|
|
libSM libICE libXmu libXext
|
2009-12-13 20:22:13 +00:00
|
|
|
];
|
|
|
|
in
|
|
|
|
rec {
|
|
|
|
src = fetchurl {
|
|
|
|
url = "ftp://ftp.ncbi.nih.gov/toolbox/ncbi_tools/old/${version}/ncbi.tar.gz";
|
|
|
|
sha256 = "05bbnqk6ffvhi556fsabcippzq2zrkynbk09qblzvfzip9hlk1qc";
|
|
|
|
};
|
|
|
|
|
|
|
|
inherit buildInputs;
|
|
|
|
configureFlags = [];
|
|
|
|
|
|
|
|
/* doConfigure should be removed if not needed */
|
|
|
|
phaseNames = ["preBuild" "build" "deploy"];
|
|
|
|
|
|
|
|
preBuild = a.fullDepEntry (''
|
|
|
|
sed -e 's@#!/bin/csh@#! ${a.tcsh}/bin/csh@' -i $(fgrep '#!/bin/csh' -rl build make)
|
|
|
|
sed -e '/set path/d' -i make/ln-if-absent
|
|
|
|
sed -e 's@/usr/include @${a.lesstif}/include ${a.mesa}/include @' -i make/makedis.csh
|
|
|
|
sed -e 's@/usr/[a-zA-Z0-9]*/include @@g; s@/usr/include/[a-zA-Z0-9/] @@g' -i make/makedis.csh
|
|
|
|
cd ..
|
|
|
|
'') ["doUnpack" "minInit"];
|
|
|
|
|
|
|
|
build = a.fullDepEntry (''
|
|
|
|
./ncbi/make/makedis.csh
|
|
|
|
'') ["preBuild" "addInputs"];
|
|
|
|
|
|
|
|
deploy = a.fullDepEntry (''
|
2012-01-18 20:16:00 +00:00
|
|
|
mkdir -p $out/bin $out/lib $out/include $out/source $out/share/${name}/build-snapshot
|
2009-12-13 20:22:13 +00:00
|
|
|
cd ncbi/build
|
|
|
|
cp *.o *.so $out/lib
|
|
|
|
cp -r . $out/share/${name}/build-snapshot
|
|
|
|
cp ../make/makedis.csh $out/share/${name}/build-snapshot
|
|
|
|
cp *.h $out/include
|
|
|
|
cp *.c *.h $out/source
|
2015-09-06 09:21:43 +01:00
|
|
|
find . -perm -0100 -a '(' '(' ! -name '*.*' ')' -o '(' -name '*.REAL' ')' ')' -exec cp '{}' $out/bin ';'
|
2009-12-13 20:22:13 +00:00
|
|
|
'') ["defEnsureDir" "build" "minInit"];
|
|
|
|
|
|
|
|
name = "NCBI-Toolbox-" + version;
|
|
|
|
meta = {
|
|
|
|
description = "NCBI general-purpose portable toolkit";
|
|
|
|
maintainers = [
|
|
|
|
a.lib.maintainers.raskin
|
|
|
|
];
|
2013-01-17 21:34:08 +00:00
|
|
|
#platforms = a.lib.platforms.linux ;
|
2009-12-13 20:22:13 +00:00
|
|
|
};
|
|
|
|
}
|