about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/tools/knightos/mkrom/default.nix
blob: 21caa5b8b32a47de9d869ea507e42a555747b076 (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, libxslt, asciidoc }:

stdenv.mkDerivation rec {
  pname = "mkrom";
  version = "1.0.4";

  src = fetchFromGitHub {
    owner = "KnightOS";
    repo = "mkrom";
    rev = version;
    sha256 = "sha256-YFrh0tOGiM90uvU9ZWopW1+9buHDQtetuOtPDSYYaXw=";
  };

  strictDeps = true;
  nativeBuildInputs = [ asciidoc libxslt.bin ];

  installFlags = [ "DESTDIR=$(out)" ];
  installTargets = [ "install" "install_man" ];

  meta = with lib; {
    homepage    = "https://knightos.org/";
    description = "Packages KnightOS distribution files into a ROM";
    license     = licenses.mit;
    maintainers = with maintainers; [ siraben ];
    platforms   = platforms.all;
  };
}