Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
47 lines
1.1 KiB
Nix
47 lines
1.1 KiB
Nix
{
|
|
lib,
|
|
buildEnv,
|
|
writeShellScriptBin,
|
|
fetchurl,
|
|
jre,
|
|
}:
|
|
|
|
let
|
|
name = "legends-browser-${version}";
|
|
version = "1.19.2";
|
|
|
|
jar = fetchurl {
|
|
url = "https://github.com/robertjanetzko/LegendsBrowser/releases/download/${version}/legendsbrowser-${version}.jar";
|
|
hash = "sha256-jkv7InwaRn0K3VAa0LqkYpH6TnrT/tGYBtbvNGM6t98=";
|
|
};
|
|
|
|
script = writeShellScriptBin "legends-browser" ''
|
|
set -eu
|
|
BASE="$HOME/.local/share/df_linux/legends-browser/"
|
|
mkdir -p "$BASE"
|
|
cd "$BASE"
|
|
if [[ ! -e legendsbrowser.properties ]]; then
|
|
echo 'Creating initial configuration for legends-browser'
|
|
echo "last=$(cd ..; pwd)" > legendsbrowser.properties
|
|
fi
|
|
exec ${jre}/bin/java -jar ${jar}
|
|
'';
|
|
in
|
|
|
|
buildEnv {
|
|
inherit name;
|
|
paths = [ script ];
|
|
|
|
meta = with lib; {
|
|
description = "Multi-platform, open source, java-based legends viewer for dwarf fortress";
|
|
maintainers = with maintainers; [
|
|
Baughn
|
|
numinit
|
|
];
|
|
sourceProvenance = with sourceTypes; [ binaryBytecode ];
|
|
license = licenses.mit;
|
|
platforms = platforms.all;
|
|
homepage = "https://github.com/robertjanetzko/LegendsBrowser";
|
|
};
|
|
}
|