Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib, stdenv, fetchurl, jre, runtimeShell }: 2 3stdenv.mkDerivation rec { 4 pname = "vue"; 5 version = "3.3.0"; 6 src = fetchurl { 7 url = "http://releases.atech.tufts.edu/jenkins/job/VUE/116/deployedArtifacts/download/artifact.1"; 8 sha256 = "0yfzr80pw632lkayg4qfmwzrqk02y30yz8br7isyhmgkswyp5rnx"; 9 }; 10 11 dontUnpack = true; 12 13 installPhase = '' 14 mkdir -p "$out"/{share/vue,bin} 15 cp ${src} "$out/share/vue/vue.jar" 16 echo '#!${runtimeShell}' >> "$out/bin/vue" 17 echo '${jre}/bin/java -jar "'"$out/share/vue/vue.jar"'" "$@"' >> "$out/bin/vue" 18 chmod a+x "$out/bin/vue" 19 ''; 20 21 meta = { 22 description = "Visual Understanding Environment - mind mapping software"; 23 maintainers = with lib.maintainers; [ raskin ]; 24 platforms = with lib.platforms; linux; 25 sourceProvenance = with lib.sourceTypes; [ binaryBytecode ]; 26 license = lib.licenses.free; # Apache License fork, actually 27 }; 28}