2021-01-23 12:26:19 +00:00
|
|
|
{ lib, stdenv, fetchurl, libarchive, python, file, which }:
|
2020-04-23 22:50:05 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "remarkable-toolchain";
|
|
|
|
version = "1.8-23.9.2019";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://remarkable.engineering/oecore-x86_64-cortexa9hf-neon-toolchain-zero-gravitas-${version}.sh";
|
2020-10-30 07:27:23 +00:00
|
|
|
sha256 = "1rk1r80m5d18sw6hrybj6f78s8pna0wrsa40ax6j8jzfwahgzmfb";
|
|
|
|
executable = true;
|
2020-04-23 22:50:05 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
libarchive
|
2020-10-30 07:27:23 +00:00
|
|
|
python
|
2020-04-23 22:50:05 +01:00
|
|
|
file
|
2020-10-30 07:27:23 +00:00
|
|
|
which
|
2020-04-23 22:50:05 +01:00
|
|
|
];
|
|
|
|
|
2020-10-30 07:27:23 +00:00
|
|
|
dontUnpack = true;
|
2020-04-23 22:50:05 +01:00
|
|
|
dontBuild = true;
|
|
|
|
|
|
|
|
installPhase = ''
|
2020-10-30 07:27:23 +00:00
|
|
|
mkdir -p $out
|
|
|
|
ENVCLEANED=1 $src -y -d $out
|
2020-04-23 22:50:05 +01:00
|
|
|
'';
|
|
|
|
|
2021-01-23 12:26:19 +00:00
|
|
|
meta = with lib; {
|
2020-04-23 22:50:05 +01:00
|
|
|
description = "A toolchain for cross-compiling to reMarkable tablets";
|
|
|
|
homepage = "https://remarkable.engineering/";
|
|
|
|
license = licenses.gpl2;
|
2020-10-30 07:27:23 +00:00
|
|
|
maintainers = with maintainers; [ nickhu siraben ];
|
|
|
|
platforms = [ "x86_64-linux" ];
|
2020-04-23 22:50:05 +01:00
|
|
|
};
|
|
|
|
}
|