diff options
author | Michael Raskin <7c6f434c@mail.ru> | 2011-07-01 07:26:38 +0000 |
---|---|---|
committer | Michael Raskin <7c6f434c@mail.ru> | 2011-07-01 07:26:38 +0000 |
commit | c1686c051d6bd558f8b7fb3559d7c95c8afeaa7a (patch) | |
tree | 624905edd6b51333ec3b3c5d448ddaae27ac954a /pkgs/tools/graphics | |
parent | a4be010d3144cd728f08bd189a85478bf387902e (diff) |
Adding Welkin RDF visualizer
svn path=/nixpkgs/trunk/; revision=27567
Diffstat (limited to 'pkgs/tools/graphics')
-rw-r--r-- | pkgs/tools/graphics/welkin/default.nix | 59 |
1 files changed, 59 insertions, 0 deletions
diff --git a/pkgs/tools/graphics/welkin/default.nix b/pkgs/tools/graphics/welkin/default.nix new file mode 100644 index 0000000000000..0076b2a4a8622 --- /dev/null +++ b/pkgs/tools/graphics/welkin/default.nix @@ -0,0 +1,59 @@ +x@{builderDefsPackage + , jre + , ...}: +builderDefsPackage +(a : +let + helperArgNames = ["stdenv" "fetchurl" "builderDefsPackage"] ++ + ["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 '' + ensureDir "$out/bin" + 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"]; + + meta = { + description = "An RDF visualizer"; + maintainers = with a.lib.maintainers; + [ + raskin + ]; + platforms = with a.lib.platforms; + []; + license = "free-noncopyleft"; + }; + passthru = { + updateInfo = { + downloadPage = "http://simile.mit.edu/dist/welkin/"; + }; + }; +}) x + |