about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/tools/knightos/kcc/default.nix
blob: 3de660ce065c936ff006824c449164eb5d4925be (plain) (blame)
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
26
27
28
29
{ lib, stdenv, fetchFromGitHub, cmake, bison, flex, boost }:

stdenv.mkDerivation rec {
  pname = "kcc";

  version = "4.0.4";

  src = fetchFromGitHub {
    owner = "KnightOS";
    repo = "kcc";
    rev = version;
    sha256 = "13sbpv8ynq8sjackv93jqxymk0bsy76c5fc0v29wz97v53q3izjp";
  };

  strictDeps = true;

  nativeBuildInputs = [ bison cmake flex ];

  buildInputs = [ boost ];

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