about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/tools/knightos/kimg/default.nix
blob: 70eea0f7b6a4fc3a6888835f296a2c092f56ce7e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
{ 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;
  };
}