Merge pull request #15966 from pshendry/master
terraria-server: 1.3.0.8 -> 1.3.1.1
This commit is contained in:
commit
628cd6f83a
@ -1,26 +1,23 @@
|
|||||||
{ stdenv, lib, file, fetchurl }:
|
{ stdenv, lib, file, fetchurl, unzip }:
|
||||||
assert stdenv.system == "x86_64-linux";
|
assert stdenv.system == "x86_64-linux";
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
name = "terraria-server-${version}";
|
name = "terraria-server-${version}";
|
||||||
version = "1308";
|
version = "1.3.1.1";
|
||||||
|
urlVersion = lib.replaceChars ["."] [""] version;
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = http://terraria.org/server/terraria-server-linux-1308.tar.gz;
|
url = "http://terraria.org/server/terraria-server-${urlVersion}.zip";
|
||||||
sha256 = "0cx3nx7wmzcw9l0nz9zm4amccl8nrd09hlb3jc1yrqcaswbyxc8a";
|
sha256 = "0bwh0na0dy6cjc1xchd5sp3c7av50q38hk03219dmqd72n9p44rq";
|
||||||
};
|
};
|
||||||
|
|
||||||
buildInputs = [ file ];
|
buildInputs = [ file unzip ];
|
||||||
|
|
||||||
sourceRoot = ".";
|
|
||||||
|
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
mkdir -p $out/bin
|
mkdir -p $out/bin
|
||||||
cp -r * $out/
|
cp -r Linux $out/
|
||||||
ln -s $out/terraria-server-linux-${version}/TerrariaServer.bin.x86_64 $out/bin/TerrariaServer
|
ln -s "$out/Linux/TerrariaServer.bin.x86_64" $out/bin/TerrariaServer
|
||||||
|
|
||||||
# Fix "/lib64/ld-linux-x86-64.so.2" like references in ELF executables.
|
# Fix "/lib64/ld-linux-x86-64.so.2" like references in ELF executables.
|
||||||
echo "running patchelf on prebuilt binaries:"
|
|
||||||
find "$out" | while read filepath; do
|
find "$out" | while read filepath; do
|
||||||
if file "$filepath" | grep -q "ELF.*executable"; then
|
if file "$filepath" | grep -q "ELF.*executable"; then
|
||||||
echo "setting interpreter $(cat "$NIX_CC"/nix-support/dynamic-linker) in $filepath"
|
echo "setting interpreter $(cat "$NIX_CC"/nix-support/dynamic-linker) in $filepath"
|
||||||
@ -32,7 +29,7 @@ stdenv.mkDerivation rec {
|
|||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
homepage = http://terraria.org;
|
homepage = http://terraria.org;
|
||||||
description = "Dedicated server for the main game";
|
description = "Dedicated server for Terraria, a 2D action-adventure sandbox";
|
||||||
platforms = platforms.linux;
|
platforms = platforms.linux;
|
||||||
license = licenses.unfree;
|
license = licenses.unfree;
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user