remarkable2-toolchain: init at 2.5.2

This commit is contained in:
Tad Fisher 2020-11-06 10:56:14 -08:00
parent 502845c3e3
commit cf20c83c41
No known key found for this signature in database
GPG key ID: 3A7425F7E7B22251
2 changed files with 41 additions and 0 deletions

View file

@ -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;
};
}

View file

@ -9066,6 +9066,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 =