aboutsummaryrefslogtreecommitdiff
path: root/srcds-pkgs/plugins/morecolors.nix
blob: 325b3539361a9c1750be6709734ed3bc7d006797 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
{ lib, fetchFromGitHub, stdenvNoCC }:
stdenvNoCC.mkDerivation rec {
  pname = "morecolors";
  version = "2022-07-07";
  
  src = fetchFromGitHub {
    owner = "DoctorMcKay";
    repo = "sourcemod-plugins";
    rev = "6c7ffca2b580b3b313ee2027ac4dd12b7fad226a";
    hash = "sha256-zmwyIMSwr2BV3feuiAZhUj2SAh5C+vp/HnGufYMpu60=";
  };
  
  phases = [ "unpackPhase" "installPhase" ];
  
  installPhase = ''
    odir=$out/share/addons/sourcemod/scripting/include
    mkdir -p $odir
    cp scripting/include/morecolors.inc $odir/
  '';
}