Files
unciv/default.nix
stubbfelnewpc 2d2a929a9e init
2022-08-25 18:34:19 +00:00

18 lines
452 B
Nix

# nix-build --expr 'with import <nixpkgs> {}; callPackage ./default.nix {}'
{ pkgs ? import <nixpkgs> { } }:
let
jarFile = pkgs.fetchurl {
url = "https://github.com/yairm210/Unciv/releases/latest/download/UncivServer.jar";
sha256 = "sha256-gGZCMG8+mqXK/2JgEN7ONBJ8QR7lAfl843EGB2j+N/E=";
};
uncivServerCmd = pkgs.writeShellScriptBin "UncivServer.sh" ''
${pkgs.jre}/bin/java -jar ${jarFile} "$@"
'';
in
uncivServerCmd