diff --git a/pkgs/development/tools/knightos/patchrom/default.nix b/pkgs/development/tools/knightos/patchrom/default.nix new file mode 100644 index 000000000000..ed34053d8354 --- /dev/null +++ b/pkgs/development/tools/knightos/patchrom/default.nix @@ -0,0 +1,28 @@ +{ stdenv, fetchFromGitHub, cmake, asciidoc, libxslt, docbook_xsl }: + + +stdenv.mkDerivation rec { + pname = "patchrom"; + + version = "1.1.3"; + + src = fetchFromGitHub { + owner = "KnightOS"; + repo = "patchrom"; + rev = version; + sha256 = "0yc4q7n3k7k6rx3cxq5ddd5r0la8gw1287a74kql6gwkxjq0jmcv"; + }; + + nativeBuildInputs = [ cmake asciidoc docbook_xsl ]; + + buildInputs = [ libxslt ]; + + hardeningDisable = [ "format" ]; + + meta = with stdenv.lib; { + homepage = "https://knightos.org/"; + description = "Patches jumptables into TI calculator ROM files and generates an include file"; + license = licenses.mit; + maintainers = with maintainers; [ siraben ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index db9bb95047be..0c050e7a3ea2 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -9336,6 +9336,8 @@ in asciidoc = asciidoc-full; }; + knightos-patchrom = callPackage ../development/tools/knightos/patchrom { }; + knightos-scas = callPackage ../development/tools/knightos/scas { }; kotlin = callPackage ../development/compilers/kotlin { };