Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{
2 lib,
3 stdenv,
4 fetchFromGitHub,
5 gitUpdater,
6 autoreconfHook,
7 allegro,
8 libsamplerate,
9 libX11,
10 SDL2,
11 SDL2_mixer,
12 readline,
13}:
14
15stdenv.mkDerivation (finalAttrs: {
16 pname = "1oom";
17 version = "1.11.7";
18
19 outputs = [
20 "out"
21 "doc"
22 ];
23
24 src = fetchFromGitHub {
25 owner = "1oom-fork";
26 repo = "1oom";
27 tag = "v${finalAttrs.version}";
28 hash = "sha256-pOEs3HQSxER0wUhasxQUyrktka8cRZCtNER0F01BRvk=";
29 };
30
31 nativeBuildInputs = [
32 autoreconfHook
33 SDL2
34 ];
35 buildInputs = [
36 allegro
37 libsamplerate
38 libX11
39 SDL2
40 SDL2_mixer
41 readline
42 ];
43
44 strictDeps = true;
45 enableParallelBuilding = true;
46
47 postInstall = ''
48 install -d $doc/share/doc/1oom
49 install -t $doc/share/doc/1oom \
50 HACKING NEWS PHILOSOPHY README.md doc/*.txt
51 '';
52
53 passthru.updateScript = gitUpdater { rev-prefix = "v"; };
54
55 meta = {
56 homepage = "https://github.com/1oom-fork/1oom";
57 changelog = "https://github.com/1oom-fork/1oom/releases/tag/v${finalAttrs.version}";
58 description = "Master of Orion (1993) game engine recreation; a more updated fork";
59 license = lib.licenses.gpl2Only;
60 platforms = lib.platforms.linux;
61 maintainers = with lib.maintainers; [ marcin-serwin ];
62 };
63})