d03a9c48fb
Using asciidoc-full was unnecessary to build KnightOS-related packages since only the a2x command matters. This change makes cross-compilation far more noticeably faster. Closure size for each package reduced from around 7 MB to 2 MB.
28 lines
617 B
Nix
28 lines
617 B
Nix
{ 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";
|
|
license = licenses.gpl2Plus;
|
|
maintainers = with maintainers; [ siraben ];
|
|
platforms = platforms.unix;
|
|
};
|
|
}
|