2021-05-02 07:28:11 +01:00
|
|
|
{ lib, stdenv, fetchFromGitHub, libxslt, asciidoc }:
|
2020-08-20 09:57:33 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "mkrom";
|
2021-05-02 07:28:11 +01:00
|
|
|
version = "1.0.4";
|
2020-08-20 09:57:33 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "KnightOS";
|
|
|
|
repo = "mkrom";
|
2020-09-10 06:40:38 +01:00
|
|
|
rev = version;
|
2021-05-02 07:28:11 +01:00
|
|
|
sha256 = "sha256-YFrh0tOGiM90uvU9ZWopW1+9buHDQtetuOtPDSYYaXw=";
|
2020-08-20 09:57:33 +01:00
|
|
|
};
|
|
|
|
|
2021-02-17 08:21:41 +00:00
|
|
|
strictDeps = true;
|
2021-05-02 07:28:11 +01:00
|
|
|
nativeBuildInputs = [ asciidoc libxslt.bin ];
|
2020-08-20 09:57:33 +01:00
|
|
|
|
2021-05-02 07:28:11 +01:00
|
|
|
installFlags = [ "DESTDIR=$(out)" ];
|
|
|
|
installTargets = [ "install" "install_man" ];
|
2020-08-20 09:57:33 +01:00
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2020-08-20 09:57:33 +01:00
|
|
|
homepage = "https://knightos.org/";
|
|
|
|
description = "Packages KnightOS distribution files into a ROM";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ siraben ];
|
2021-05-02 07:28:11 +01:00
|
|
|
platforms = platforms.all;
|
2020-08-20 09:57:33 +01:00
|
|
|
};
|
|
|
|
}
|