2021-05-03 20:48:10 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, libxslt, asciidoc }:
|
2020-09-25 04:45:31 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "mkrom";
|
2021-05-03 20:48:10 +00:00
|
|
|
version = "1.0.4";
|
2020-09-25 04:45:31 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "KnightOS";
|
|
|
|
repo = "mkrom";
|
|
|
|
rev = version;
|
2021-05-03 20:48:10 +00:00
|
|
|
sha256 = "sha256-YFrh0tOGiM90uvU9ZWopW1+9buHDQtetuOtPDSYYaXw=";
|
2020-09-25 04:45:31 +00:00
|
|
|
};
|
|
|
|
|
2021-02-17 17:02:09 +00:00
|
|
|
strictDeps = true;
|
2021-05-03 20:48:10 +00:00
|
|
|
nativeBuildInputs = [ asciidoc libxslt.bin ];
|
2020-09-25 04:45:31 +00:00
|
|
|
|
2021-05-03 20:48:10 +00:00
|
|
|
installFlags = [ "DESTDIR=$(out)" ];
|
|
|
|
installTargets = [ "install" "install_man" ];
|
2020-09-25 04:45:31 +00:00
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-09-25 04:45:31 +00:00
|
|
|
homepage = "https://knightos.org/";
|
|
|
|
description = "Packages KnightOS distribution files into a ROM";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "mkrom";
|
2020-09-25 04:45:31 +00:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ siraben ];
|
2021-05-03 20:48:10 +00:00
|
|
|
platforms = platforms.all;
|
2020-09-25 04:45:31 +00:00
|
|
|
};
|
|
|
|
}
|