forked from mirrors/nixpkgs
Merge pull request #131335 from siraben/remarkable-toolchain-update
Remarkable toolchain update
This commit is contained in:
commit
f80af7c602
|
@ -1,18 +1,18 @@
|
|||
{ lib, stdenv, fetchurl, libarchive, python, file, which }:
|
||||
{ lib, stdenv, fetchurl, libarchive, python3, file, which }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "remarkable-toolchain";
|
||||
version = "1.8-23.9.2019";
|
||||
version = "3.1.2";
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://remarkable.engineering/oecore-x86_64-cortexa9hf-neon-toolchain-zero-gravitas-${version}.sh";
|
||||
sha256 = "1rk1r80m5d18sw6hrybj6f78s8pna0wrsa40ax6j8jzfwahgzmfb";
|
||||
url = "https://storage.googleapis.com/remarkable-codex-toolchain/codex-x86_64-cortexa9hf-neon-rm10x-toolchain-${version}.sh";
|
||||
sha256 = "sha256-ocODUUx2pgmqxMk8J+D+OvqlSHBSay6YzcqnxC9n59w=";
|
||||
executable = true;
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
libarchive
|
||||
python
|
||||
python3
|
||||
file
|
||||
which
|
||||
];
|
||||
|
@ -28,7 +28,7 @@ stdenv.mkDerivation rec {
|
|||
meta = with lib; {
|
||||
description = "A toolchain for cross-compiling to reMarkable tablets";
|
||||
homepage = "https://remarkable.engineering/";
|
||||
license = licenses.gpl2;
|
||||
license = licenses.gpl2Plus;
|
||||
maintainers = with maintainers; [ nickhu siraben ];
|
||||
platforms = [ "x86_64-linux" ];
|
||||
};
|
||||
|
|
|
@ -1,32 +1,28 @@
|
|||
{ lib, stdenv, fetchurl, libarchive, python3, file }:
|
||||
{ lib, stdenv, fetchurl, libarchive, python3, file, which }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "remarkable2-toolchain";
|
||||
version = "2.5.2";
|
||||
version = "3.1.2";
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://storage.googleapis.com/codex-public-bucket/codex-x86_64-cortexa7hf-neon-rm11x-toolchain-${version}.sh";
|
||||
sha256 = "1v410q1jn8flisdpkrymxd4pa1ylawd0rh3rljjpkqw1bp8a5vw1";
|
||||
url = "https://storage.googleapis.com/remarkable-codex-toolchain/codex-x86_64-cortexa7hf-neon-rm11x-toolchain-${version}.sh";
|
||||
sha256 = "sha256-JKMDRbkvoxwHiTm/o4JdLn3Mm2Ld1LyxTnCCwvnxk4c=";
|
||||
executable = true;
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
libarchive
|
||||
python3
|
||||
file
|
||||
which
|
||||
];
|
||||
|
||||
unpackCmd = ''
|
||||
mkdir src
|
||||
install $curSrc src/install-toolchain.sh
|
||||
'';
|
||||
|
||||
dontUnpack = true;
|
||||
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
|
||||
mkdir -p $out
|
||||
ENVCLEANED=1 $src -y -d $out
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
|
@ -34,6 +30,6 @@ stdenv.mkDerivation rec {
|
|||
homepage = "https://remarkable.engineering/";
|
||||
license = licenses.gpl2Plus;
|
||||
maintainers = with maintainers; [ tadfisher ];
|
||||
platforms = platforms.x86_64;
|
||||
platforms = [ "x86_64-linux" ];
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue