-
Notifications
You must be signed in to change notification settings - Fork 77
/
shell.nix
41 lines (37 loc) · 887 Bytes
/
shell.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# Copyright (C) 2005 - 2022 Settlers Freaks <sf-team at siedler25.org>
#
# SPDX-License-Identifier: GPL-2.0-or-later
{
pkgs ? import <nixpkgs> { overlays = [
# This is a workaround for https://github.com/NixOS/nixpkgs/issues/146759
# NixOS does currently ship an incomple SDL2 installation when withStatic=false.
# See https://nixpk.gs/pr-tracker.html?pr=149601 as state for a PR on NixOS side.
(final: prev: {
SDL2 = prev.SDL2.override {
withStatic = true;
};
})];
}
}:
with pkgs;
mkShell {
name = "s25client";
# Set SOURCE_DATE_EPOCH to the newest file in the directory.
# RTTR_BUILD_DATE is calculated by that epoch value.
shellHook = ''
updateSourceDateEpoch .
'';
buildInputs = [
stdenv
boost
bzip2
cmake
curl
gettext
libiconv
miniupnpc
SDL2
SDL2_mixer
libsamplerate
];
}