1{ lib
2, pkgs
3, stdenv
4, fetchFromGitHub
5}:
6
7stdenv.mkDerivation rec {
8 pname = "gmqcc";
9 version = "unstable-2021-07-09";
10
11 src = fetchFromGitHub {
12 owner = "graphitemaster";
13 repo = "gmqcc";
14 rev = "297eab9e5e2c9cc4f41201b68821593a5cf9a725";
15 sha256 = "1hl2qn7402ia03kjkblj4q4wfypxkil99sivsyk2vrnwwpdp4nzx";
16 };
17
18 installPhase = ''
19 runHook preInstall
20
21 mkdir -p $out/bin
22 install -m755 gmqcc $out/bin
23
24 runHook postInstall
25 '';
26
27 meta = with lib; {
28 homepage = "https://graphitemaster.github.io/gmqcc/";
29 description = "A modern QuakeC compiler";
30 longDescription = ''
31 For an enduring period of time the options for a decent compiler for
32 the Quake C programming language were confined to a specific compiler
33 known as QCC. Attempts were made to extend and improve upon the design
34 of QCC, but many foreseen the consequences of building on a broken
35 foundation. The solution was obvious, a new compiler; one born from
36 the NIH realm of sarcastic wit.
37 We welcome you. You won't find a better Quake C compiler.
38 '';
39 license = lib.licenses.mit;
40 maintainers = with lib.maintainers; [ necrophcodr ];
41 platforms = platforms.linux;
42 };
43}