tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
terraria-server: add mainProgram and small refactor
TomaSajt
2 years ago
b80c7a73
e2b5418c
+11
-3
1 changed file
expand all
collapse all
unified
split
pkgs
games
terraria-server
default.nix
+11
-3
pkgs/games/terraria-server/default.nix
···
1
-
{ stdenv, lib, file, fetchurl, autoPatchelfHook, unzip }:
0
0
0
0
0
0
0
2
3
stdenv.mkDerivation rec {
4
pname = "terraria-server";
···
10
sha256 = "sha256-Mk+5s9OlkyTLXZYVT0+8Qcjy2Sb5uy2hcC8CML0biNY=";
11
};
12
13
-
buildInputs = [ file stdenv.cc.cc.libgcc ];
14
nativeBuildInputs = [ autoPatchelfHook unzip ];
0
15
16
installPhase = ''
17
runHook preInstall
···
29
description = "Dedicated server for Terraria, a 2D action-adventure sandbox";
30
platforms = [ "x86_64-linux" ];
31
license = licenses.unfree;
32
-
maintainers = with maintainers; [ ncfavier ];
0
33
};
34
}
···
1
+
{ lib
2
+
, stdenv
3
+
, fetchurl
4
+
5
+
, autoPatchelfHook
6
+
, unzip
7
+
, zlib
8
+
}:
9
10
stdenv.mkDerivation rec {
11
pname = "terraria-server";
···
17
sha256 = "sha256-Mk+5s9OlkyTLXZYVT0+8Qcjy2Sb5uy2hcC8CML0biNY=";
18
};
19
0
20
nativeBuildInputs = [ autoPatchelfHook unzip ];
21
+
buildInputs = [ stdenv.cc.cc.libgcc zlib ];
22
23
installPhase = ''
24
runHook preInstall
···
36
description = "Dedicated server for Terraria, a 2D action-adventure sandbox";
37
platforms = [ "x86_64-linux" ];
38
license = licenses.unfree;
39
+
mainProgram = "TerrariaServer";
40
+
maintainers = with maintainers; [ ncfavier tomasajt ];
41
};
42
}