mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-24 06:33:42 +00:00
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.
26 lines
625 B
Nix
26 lines
625 B
Nix
{ lib, stdenv, fetchFromGitHub, cmake, libxslt, asciidoc }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "mkrom";
|
|
version = "1.0.3";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "KnightOS";
|
|
repo = "mkrom";
|
|
rev = version;
|
|
sha256 = "0xgvanya40mdwy35j94j61hsp80dm5b440iphmr5ng3kjgchvpx2";
|
|
};
|
|
|
|
strictDeps = true;
|
|
nativeBuildInputs = [ asciidoc cmake libxslt.bin ];
|
|
|
|
hardeningDisable = [ "format" ];
|
|
|
|
meta = with lib; {
|
|
homepage = "https://knightos.org/";
|
|
description = "Packages KnightOS distribution files into a ROM";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ siraben ];
|
|
};
|
|
}
|