mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-21 13:13:33 +00:00
591ccfe5b9
This continues whered8f7f6a5ce
left off. Similarly to that commit, this commit this also points `sourceRoot`s to `src.name` and similar instead of keeping hardcoded names, and edits other derivation attrs do do the same, where appropriate. Also, similarly tod8f7f6a5ce
some of expressions this edits use `srcs` attribute with customly-named sources, so they have to be moved into `let` blocks to keep evaluation efficient (the other, worse, way to do this would to recurcively refer to `elemAt n finalAttrs.srcs` or, similarly, with `rec`).
39 lines
974 B
Nix
39 lines
974 B
Nix
{ lib, stdenv, fetchsvn, jre, makeWrapper }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "welkin";
|
|
version = "1.1";
|
|
|
|
src = fetchsvn {
|
|
url = "http://simile.mit.edu/repository/welkin";
|
|
rev = "9638";
|
|
sha256 = "1bqh3vam7y805xrmdw7k0ckcfwjg88wypxgv3njkkwyn7kxnfnqp";
|
|
};
|
|
|
|
sourceRoot = "${src.name}/tags/${version}";
|
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
|
buildInputs = [ jre ];
|
|
|
|
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 lib.maintainers; [
|
|
raskin
|
|
];
|
|
hydraPlatforms = [];
|
|
sourceProvenance = with lib.sourceTypes; [ binaryBytecode ];
|
|
license = lib.licenses.free;
|
|
platforms = with lib.platforms; unix;
|
|
};
|
|
}
|