aboutsummaryrefslogtreecommitdiff
path: root/nixpkgs/pkgs/development/tools/knightos/kcc/default.nix
blob: 49851dd0c074af3374374ee1cb6af3ec248ae2a8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
{ stdenv, fetchFromGitHub, cmake, bison, flex, boost }:

stdenv.mkDerivation rec {
  pname = "kcc";

  version = "4.0.0";

  src = fetchFromGitHub {
    owner = "KnightOS";
    repo = "kcc";
    rev = version;
    sha256 = "1cd226nqbxq32mppkljavq1kb74jqfqns9r7fskszr42hbygynk4";
  };

  nativeBuildInputs = [ cmake bison flex ];

  buildInputs = [ boost ];

  meta = with stdenv.lib; {
    homepage    = "https://knightos.org/";
    description = "KnightOS C compiler";
    license     = licenses.gpl2Plus;
    maintainers = with maintainers; [ siraben ];
  };
}