nixpkgs/pkgs/by-name/gm/gmqcc/package.nix
aleksana 571c71e6f7 treewide: migrate packages to pkgs/by-name, take 1
We are migrating packages that meet below requirements:

1. using `callPackage`
2. called path is a directory
3. overriding set is empty (`{ }`)
4. not containing path expressions other than relative path (to
makenixpkgs-vet happy)
5. not referenced by nix files outside of the directory, other
than`pkgs/top-level/all-packages.nix`
6. not referencing nix files outside of the directory
7. not referencing `default.nix` (since it's changed to `package.nix`)
8. `outPath` doesn't change after migration

The tool is here: https://github.com/Aleksanaa/by-name-migrate.
2024-11-09 20:04:51 +08:00

44 lines
1.2 KiB
Nix

{ lib
, stdenv
, fetchFromGitHub
}:
stdenv.mkDerivation rec {
pname = "gmqcc";
version = "0-unstable-2023-05-05";
src = fetchFromGitHub {
owner = "graphitemaster";
repo = "gmqcc";
rev = "2fe0af00e78d55edecd7ca7ee1808c4ea946b05f";
hash = "sha256-AyuwsUIt+P/D4ABuIXGJxpp0TMAbnDg+R2iNMy6WjRw=";
};
installPhase = ''
runHook preInstall
mkdir -p $out/bin
install -m755 gmqcc $out/bin
runHook postInstall
'';
meta = with lib; {
homepage = "https://graphitemaster.github.io/gmqcc/";
description = "Modern QuakeC compiler";
mainProgram = "gmqcc";
longDescription = ''
For an enduring period of time the options for a decent compiler for
the Quake C programming language were confined to a specific compiler
known as QCC. Attempts were made to extend and improve upon the design
of QCC, but many foreseen the consequences of building on a broken
foundation. The solution was obvious, a new compiler; one born from
the NIH realm of sarcastic wit.
We welcome you. You won't find a better Quake C compiler.
'';
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ necrophcodr ];
platforms = platforms.linux;
};
}