nixpkgs/pkgs/development/tools/knightos/genkfs/default.nix
Ben Siraphob d03a9c48fb knightos: reduce build time dependency graph
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.
2021-02-17 19:21:22 +07:00

28 lines
663 B
Nix

{ lib, stdenv, fetchFromGitHub, asciidoc, cmake, libxslt }:
stdenv.mkDerivation rec {
pname = "genkfs";
version = "1.3.2";
src = fetchFromGitHub {
owner = "KnightOS";
repo = "genkfs";
rev = version;
sha256 = "0f50idd2bb73b05qjmwlirjnhr1bp43zhrgy6z949ab9a7hgaydp";
};
strictDeps = true;
nativeBuildInputs = [ asciidoc libxslt.bin cmake ];
hardeningDisable = [ "format" ];
meta = with lib; {
homepage = "https://knightos.org/";
description = "Utility to write a KFS filesystem into a ROM file";
license = licenses.mit;
maintainers = with maintainers; [ siraben ];
platforms = platforms.all;
};
}