2011-09-01 14:41:42 +01:00
|
|
|
x@{builderDefsPackage
|
|
|
|
, jre, unzip
|
|
|
|
, ...}:
|
|
|
|
builderDefsPackage
|
2014-11-06 00:44:33 +00:00
|
|
|
(a :
|
|
|
|
let
|
|
|
|
helperArgNames = ["stdenv" "fetchurl" "builderDefsPackage"] ++
|
2011-09-01 14:41:42 +01:00
|
|
|
[];
|
|
|
|
|
|
|
|
buildInputs = map (n: builtins.getAttr n x)
|
|
|
|
(builtins.attrNames (builtins.removeAttrs x helperArgNames));
|
|
|
|
sourceInfo = rec {
|
|
|
|
baseName="vue";
|
2013-11-22 06:34:08 +00:00
|
|
|
version="3.2.2";
|
2011-09-01 14:41:42 +01:00
|
|
|
name="${baseName}-${version}";
|
2013-11-22 06:34:08 +00:00
|
|
|
url="releases.atech.tufts.edu/jenkins/job/VUE/64/deployedArtifacts/download/artifact.2";
|
|
|
|
hash="0sb1kgan8fvph2cqfxk3906cwx5wy83zni2vlz4zzi6yg4zvfxld";
|
2011-09-01 14:41:42 +01:00
|
|
|
};
|
|
|
|
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"];
|
|
|
|
|
|
|
|
doDeploy = a.fullDepEntry ''
|
2012-01-18 20:16:00 +00:00
|
|
|
mkdir -p "$out"/{share/vue,bin}
|
2013-11-22 06:34:08 +00:00
|
|
|
cp ${src} "$out/share/vue/vue.jar"
|
2014-11-06 00:44:33 +00:00
|
|
|
echo '#!${a.stdenv.shell}' >> "$out/bin/vue"
|
|
|
|
echo '${a.jre}/bin/java -jar "'"$out/share/vue/vue.jar"'" "$@"' >> "$out/bin/vue"
|
2011-09-01 14:41:42 +01:00
|
|
|
chmod a+x "$out/bin/vue"
|
|
|
|
'' ["addInputs" "defEnsureDir"];
|
2014-11-06 00:44:33 +00:00
|
|
|
|
2011-09-01 14:41:42 +01:00
|
|
|
meta = {
|
|
|
|
description = "Visual Understanding Environment - mind mapping software";
|
|
|
|
maintainers = with a.lib.maintainers;
|
|
|
|
[
|
|
|
|
raskin
|
|
|
|
];
|
|
|
|
platforms = with a.lib.platforms;
|
|
|
|
linux;
|
2014-11-06 00:44:33 +00:00
|
|
|
license = a.lib.licenses.free; # Apache License fork, actually
|
2011-09-01 14:41:42 +01:00
|
|
|
};
|
|
|
|
}) x
|