dwarf-fortress: Init Legends Browser at 1.17.1
This commit is contained in:
parent
8c7461a348
commit
c8095af0cd
|
@ -32,6 +32,8 @@ let
|
|||
|
||||
dwarf-therapist = callPackage ./dwarf-therapist/wrapper.nix { };
|
||||
|
||||
legends-browser = callPackage ./legends-browser {};
|
||||
|
||||
themes = callPackage ./themes {
|
||||
stdenv = stdenvNoCC;
|
||||
};
|
||||
|
|
|
@ -0,0 +1,28 @@
|
|||
{ stdenv, fetchurl, jre }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "legends-browser-${version}";
|
||||
version = "1.17.1";
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://github.com/robertjanetzko/LegendsBrowser/releases/download/${version}/legendsbrowser-${version}.jar";
|
||||
sha256 = "05b4ksbl4481rh3ykfirbp6wvxhppcd5mvclhn9995gsrcaj8gx9";
|
||||
};
|
||||
|
||||
unpackPhase = "true";
|
||||
|
||||
installPhase = ''
|
||||
mkdir -p $out/bin
|
||||
ln -s $src $out/legends-browser.jar
|
||||
echo "${jre}/bin/java -jar $out/legends-browser.jar" > $out/bin/legends-browser
|
||||
chmod a+x $out/bin/legends-browser
|
||||
'';
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "A multi-platform, open source, java-based legends viewer for dwarf fortress";
|
||||
maintainers = with maintainers; [ Baughn ];
|
||||
license = licenses.mit;
|
||||
platforms = platforms.all;
|
||||
homepage = https://github.com/robertjanetzko/LegendsBrowser;
|
||||
};
|
||||
}
|
Loading…
Reference in New Issue