2021-01-15 22:18:51 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, cmake, bison, flex, boost }:
|
2020-09-25 04:45:31 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "kcc";
|
|
|
|
|
2020-12-25 13:55:36 +00:00
|
|
|
version = "4.0.4";
|
2020-09-25 04:45:31 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "KnightOS";
|
|
|
|
repo = "kcc";
|
|
|
|
rev = version;
|
2020-12-25 13:55:36 +00:00
|
|
|
sha256 = "13sbpv8ynq8sjackv93jqxymk0bsy76c5fc0v29wz97v53q3izjp";
|
2020-09-25 04:45:31 +00:00
|
|
|
};
|
|
|
|
|
2021-02-17 17:02:09 +00:00
|
|
|
strictDeps = true;
|
|
|
|
|
|
|
|
nativeBuildInputs = [ bison cmake flex ];
|
2020-09-25 04:45:31 +00:00
|
|
|
|
|
|
|
buildInputs = [ boost ];
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-09-25 04:45:31 +00:00
|
|
|
homepage = "https://knightos.org/";
|
|
|
|
description = "KnightOS C compiler";
|
|
|
|
license = licenses.gpl2Plus;
|
|
|
|
maintainers = with maintainers; [ siraben ];
|
2020-10-19 00:13:06 +00:00
|
|
|
platforms = platforms.unix;
|
2020-09-25 04:45:31 +00:00
|
|
|
};
|
|
|
|
}
|