nixpkgs/pkgs/tools/graphics/welkin/default.nix
Tuomas Tynkkynen 21f17d69f6 treewide: Add lots of meta.platforms
Build-tested on x86_64 Linux & Mac.
2016-08-02 21:42:43 +03:00

37 lines
909 B
Nix

{ stdenv, fetchsvn, jre, makeWrapper }:
stdenv.mkDerivation rec {
name = "welkin-${version}";
version = "1.1";
src = fetchsvn {
url = "http://simile.mit.edu/repository/welkin";
rev = "9638";
sha256 = "1bqh3vam7y805xrmdw7k0ckcfwjg88wypxgv3njkkwyn7kxnfnqp";
};
sourceRoot = "welkin-r9638/tags/${version}";
buildInputs = [ jre makeWrapper ];
installPhase = ''
mkdir -p $out/{bin,share}
cp -R . $out/share
cp $out/share/welkin.sh $out/bin/welkin
sed -e 's@\./lib/welkin\.jar@'"$out"'/share/lib/welkin.jar@' -i $out/bin/welkin
wrapProgram $out/bin/welkin \
--set JAVA_HOME ${jre}
chmod a+x $out/bin/welkin
'';
meta = {
description = "An RDF visualizer";
maintainers = with stdenv.lib.maintainers; [
raskin
];
hydraPlatforms = [];
license = stdenv.lib.licenses.free;
platforms = with stdenv.lib.platforms; unix;
};
}