1{
2 callPackage,
3 fetchFromGitHub,
4 fetchpatch2,
5 zlib,
6}:
7
8callPackage ./build.nix rec {
9 pname = "fallout2-ce";
10 version = "1.3.0";
11
12 src = fetchFromGitHub {
13 owner = "alexbatalov";
14 repo = "fallout2-ce";
15 rev = "v${version}";
16 hash = "sha256-r1pnmyuo3uw2R0x9vGScSHIVNA6t+txxABzgHkUEY5U=";
17 };
18
19 patches = [
20 # Fix case-sensitive filesystems issue when save/load games
21 (fetchpatch2 {
22 url = "https://github.com/alexbatalov/fallout2-ce/commit/d843a662b3ceaf01ac363e9abb4bfceb8b805c36.patch";
23 sha256 = "sha256-u4E9+DE6sGYikIGwKDmSBj3ErCfIo6YzIw2eMiqXw/E=";
24 })
25 ];
26
27 extraBuildInputs = [ zlib ];
28
29 extraMeta = {
30 description = "Fully working re-implementation of Fallout 2, with the same original gameplay, engine bugfixes, and some quality of life improvements";
31 homepage = "https://github.com/alexbatalov/fallout2-ce";
32 };
33}