Merge pull request #103030 from tadfisher/remarkable-2-toolchain

remarkable2-toolchain: init at 2.5.2
This commit is contained in:
Sandro 2021-01-14 21:03:32 +01:00 committed by GitHub
commit 7cb3bffc34
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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

@ -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 =