nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 stdenv,
4 fetchFromGitHub,
5 cmake,
6 SDL2,
7 SDL2_mixer,
8 SDL2_image,
9 fluidsynth,
10 portmidi,
11 libxmp,
12 libsndfile,
13 libvorbis,
14 libmad,
15 libGLU,
16 libzip,
17 alsa-lib,
18 nix-update-script,
19}:
20
21stdenv.mkDerivation (finalAttrs: {
22 pname = "dsda-doom";
23 version = "0.29.4";
24
25 src = fetchFromGitHub {
26 owner = "kraflab";
27 repo = "dsda-doom";
28 tag = "v${finalAttrs.version}";
29 hash = "sha256-iZV8lsefEix0/iHXUGXJohSGxJDJC+eTijGVkOrwK0Q=";
30 };
31
32 sourceRoot = "${finalAttrs.src.name}/prboom2";
33
34 nativeBuildInputs = [ cmake ];
35
36 buildInputs = [
37 alsa-lib
38 fluidsynth
39 libGLU
40 libmad
41 libsndfile
42 libvorbis
43 libxmp
44 libzip
45 portmidi
46 SDL2
47 SDL2_image
48 SDL2_mixer
49 ];
50
51 passthru.updateScript = nix-update-script { };
52
53 meta = {
54 homepage = "https://github.com/kraflab/dsda-doom";
55 changelog = "https://github.com/kraflab/dsda-doom/releases/tag/v${finalAttrs.version}";
56 description = "Advanced Doom source port with a focus on speedrunning, successor of PrBoom+";
57 mainProgram = "dsda-doom";
58 license = lib.licenses.gpl2Plus;
59 platforms = lib.platforms.linux;
60 maintainers = with lib.maintainers; [ Gliczy ];
61 };
62})