diff --git a/pkgs/development/tools/misc/remarkable/remarkable2-toolchain/default.nix b/pkgs/development/tools/misc/remarkable/remarkable2-toolchain/default.nix new file mode 100644 index 000000000000..f4f83f21840b --- /dev/null +++ b/pkgs/development/tools/misc/remarkable/remarkable2-toolchain/default.nix @@ -0,0 +1,39 @@ +{ stdenv, fetchurl, libarchive, python3, file }: + +stdenv.mkDerivation rec { + pname = "remarkable2-toolchain"; + version = "2.5.2"; + + src = fetchurl { + url = "https://storage.googleapis.com/codex-public-bucket/codex-x86_64-cortexa7hf-neon-rm11x-toolchain-${version}.sh"; + sha256 = "1v410q1jn8flisdpkrymxd4pa1ylawd0rh3rljjpkqw1bp8a5vw1"; + }; + + nativeBuildInputs = [ + libarchive + python3 + file + ]; + + unpackCmd = '' + mkdir src + install $curSrc src/install-toolchain.sh + ''; + + dontBuild = true; + + installPhase = '' + patchShebangs install-toolchain.sh + sed -i -e '3,9d' install-toolchain.sh # breaks PATH + sed -i 's|PYTHON=.*$|PYTHON=${python3}/bin/python|' install-toolchain.sh + ./install-toolchain.sh -D -y -d $out + ''; + + meta = with stdenv.lib; { + description = "A toolchain for cross-compiling to reMarkable 2 tablets"; + homepage = "https://remarkable.engineering/"; + license = licenses.gpl2Plus; + maintainers = with maintainers; [ tadfisher ]; + platforms = platforms.x86_64; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 4ae1a74c5a8b..90044210c362 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -9693,6 +9693,8 @@ in remarkable-toolchain = callPackage ../development/tools/misc/remarkable/remarkable-toolchain { }; + remarkable2-toolchain = callPackage ../development/tools/misc/remarkable/remarkable2-toolchain { }; + tacacsplus = callPackage ../servers/tacacsplus { }; tamarin-prover =