18 lines
452 B
Nix
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
|