1 { lib, stdenv, fetchFromGitHub }:
5 version = "unstable-2018-01-04";
7 src = fetchFromGitHub {
10 rev = "d58b44d9f18b28fd732c27113e5607a454506d19";
11 sha256 = "1m83ip40ln61qrvb1fbgaqbld2xip9n3k817lwkk1936pml9zcrq";
14 enableParallelBuilding = true;
15 makeFlags = ["CC=${stdenv.cc.targetPrefix}cc"];
17 patches = [ ./bcc-warning-fix.patch ];
20 mkdir -p $out/{bin,lib,share/doc}
21 install -m755 bcc $out/bin/bcc
22 cp -av doc $out/share/doc/bcc
23 cp -av lib $out/lib/bcc
27 description = "Compiler for Doom/Hexen scripts (ACS, BCS)";
28 homepage = "https://github.com/wormt/bcc";
29 license = licenses.mit;
30 maintainers = with maintainers; [ertes];