2021-01-11 07:54:33 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, cmake, bison, flex, boost }:
|
2020-08-22 11:26:28 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "kcc";
|
|
|
|
|
2020-12-15 14:42:28 +00:00
|
|
|
version = "4.0.4";
|
2020-08-22 11:26:28 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "KnightOS";
|
|
|
|
repo = "kcc";
|
|
|
|
rev = version;
|
2020-12-15 14:42:28 +00:00
|
|
|
sha256 = "13sbpv8ynq8sjackv93jqxymk0bsy76c5fc0v29wz97v53q3izjp";
|
2020-08-22 11:26:28 +01:00
|
|
|
};
|
|
|
|
|
2021-02-17 08:21:41 +00:00
|
|
|
strictDeps = true;
|
|
|
|
|
|
|
|
nativeBuildInputs = [ bison cmake flex ];
|
2020-08-22 11:26:28 +01:00
|
|
|
|
|
|
|
buildInputs = [ boost ];
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2020-08-22 11:26:28 +01:00
|
|
|
homepage = "https://knightos.org/";
|
|
|
|
description = "KnightOS C compiler";
|
|
|
|
license = licenses.gpl2Plus;
|
|
|
|
maintainers = with maintainers; [ siraben ];
|
2020-10-17 07:08:55 +01:00
|
|
|
platforms = platforms.unix;
|
2020-08-22 11:26:28 +01:00
|
|
|
};
|
|
|
|
}
|