nixpkgs/pkgs/development/tools/misc/remarkable/remarkable2-toolchain/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

37 lines
925 B
Nix
Raw Normal View History

2021-07-24 12:44:12 +00:00
{ lib, stdenv, fetchurl, libarchive, python3, file, which }:
2020-11-06 18:56:14 +00:00
stdenv.mkDerivation rec {
pname = "remarkable2-toolchain";
2021-07-24 12:44:12 +00:00
version = "3.1.2";
2020-11-06 18:56:14 +00:00
src = fetchurl {
2021-07-24 12:44:12 +00:00
url = "https://storage.googleapis.com/remarkable-codex-toolchain/codex-x86_64-cortexa7hf-neon-rm11x-toolchain-${version}.sh";
sha256 = "sha256-JKMDRbkvoxwHiTm/o4JdLn3Mm2Ld1LyxTnCCwvnxk4c=";
executable = true;
2020-11-06 18:56:14 +00:00
};
nativeBuildInputs = [
libarchive
python3
file
2021-07-24 12:44:12 +00:00
which
2020-11-06 18:56:14 +00:00
];
2021-07-24 12:44:12 +00:00
dontUnpack = true;
2020-11-06 18:56:14 +00:00
dontBuild = true;
installPhase = ''
2021-07-24 12:44:12 +00:00
mkdir -p $out
ENVCLEANED=1 $src -y -d $out
2020-11-06 18:56:14 +00:00
'';
meta = with lib; {
2020-11-06 18:56:14 +00:00
description = "A toolchain for cross-compiling to reMarkable 2 tablets";
homepage = "https://remarkable.engineering/";
sourceProvenance = with sourceTypes; [ binaryNativeCode ];
2020-11-06 18:56:14 +00:00
license = licenses.gpl2Plus;
maintainers = with maintainers; [ tadfisher ];
2021-07-24 12:44:12 +00:00
platforms = [ "x86_64-linux" ];
2020-11-06 18:56:14 +00:00
};
}