nixpkgs/pkgs/development/tools/knightos/kimg/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

27 lines
684 B
Nix

{ lib, stdenv, fetchFromGitHub, cmake, libxslt, asciidoc }:
stdenv.mkDerivation rec {
pname = "kimg";
version = "0.4.0";
src = fetchFromGitHub {
owner = "KnightOS";
repo = "kimg";
rev = version;
sha256 = "040782k3rh2a5mhbfgr9gnbfis0wgxvi27vhfn7l35vrr12sw1l3";
};
strictDeps = true;
nativeBuildInputs = [ asciidoc cmake libxslt.bin ];
hardeningDisable = [ "format" ];
meta = with lib; {
homepage = "https://knightos.org/";
description = "Converts image formats supported by stb_image to the KnightOS image format";
license = licenses.mit;
maintainers = with maintainers; [ siraben ];
platforms = platforms.all;
};
}