2011-07-01 07:26:38 +00:00
|
|
|
x@{builderDefsPackage
|
|
|
|
, jre
|
|
|
|
, ...}:
|
|
|
|
builderDefsPackage
|
2014-11-06 00:44:33 +00:00
|
|
|
(a :
|
|
|
|
let
|
|
|
|
helperArgNames = ["stdenv" "fetchurl" "builderDefsPackage"] ++
|
2011-07-01 07:26:38 +00:00
|
|
|
["jre"];
|
|
|
|
|
|
|
|
buildInputs = map (n: builtins.getAttr n x)
|
|
|
|
(builtins.attrNames (builtins.removeAttrs x helperArgNames));
|
|
|
|
sourceInfo = rec {
|
|
|
|
baseName="welkin";
|
|
|
|
version="1.1";
|
|
|
|
name="${baseName}-${version}";
|
|
|
|
url="http://simile.mit.edu/dist/welkin/${name}.tar.gz";
|
|
|
|
hash="0hr2xvfz887fdf2ysiqydv6m13gbdl5x0fh4960i655d5imvd5x0";
|
|
|
|
};
|
|
|
|
in
|
|
|
|
rec {
|
|
|
|
src = a.fetchurl {
|
|
|
|
url = sourceInfo.url;
|
|
|
|
sha256 = sourceInfo.hash;
|
|
|
|
};
|
|
|
|
|
|
|
|
inherit (sourceInfo) name version;
|
|
|
|
inherit buildInputs;
|
|
|
|
|
|
|
|
/* doConfigure should be removed if not needed */
|
|
|
|
phaseNames = ["doDeploy" "createBin"];
|
|
|
|
|
|
|
|
doDeploy = a.simplyShare "welkin";
|
|
|
|
|
|
|
|
createBin = a.fullDepEntry ''
|
2012-01-18 20:16:00 +00:00
|
|
|
mkdir -p "$out/bin"
|
2011-07-01 07:26:38 +00:00
|
|
|
echo "#! ${a.stdenv.shell}" > "$out/bin/welkin"
|
|
|
|
echo "export JAVA_HOME=${jre}" >> "$out/bin/welkin"
|
|
|
|
echo "\"$out/share/welkin/welkin.sh\" \"\$@\"" >> "$out/bin/welkin"
|
|
|
|
sed -e 's@[.]/lib/welkin[.]jar@"'"$out"'/share/welkin/lib/welkin.jar"@' -i "$out/share/welkin/welkin.sh"
|
|
|
|
chmod a+x "$out/bin/welkin"
|
|
|
|
'' ["minInit" "defEnsureDir"];
|
2014-11-06 00:44:33 +00:00
|
|
|
|
2011-07-01 07:26:38 +00:00
|
|
|
meta = {
|
|
|
|
description = "An RDF visualizer";
|
|
|
|
maintainers = with a.lib.maintainers;
|
|
|
|
[
|
|
|
|
raskin
|
|
|
|
];
|
2013-11-04 23:04:36 +00:00
|
|
|
hydraPlatforms = [];
|
2014-11-06 00:44:33 +00:00
|
|
|
license = a.lib.licenses.free;
|
2011-07-01 07:26:38 +00:00
|
|
|
};
|
|
|
|
passthru = {
|
|
|
|
updateInfo = {
|
|
|
|
downloadPage = "http://simile.mit.edu/dist/welkin/";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}) x
|