Merge master into staging-next
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
{ stdenv, nix, perlPackages, buildEnv, fetchFromGitHub
|
||||
, makeWrapper, autoconf, automake, libtool, unzip, pkgconfig, sqlite, libpqxx
|
||||
, gitAndTools, mercurial, darcs, subversion, breezy, openssl, bzip2, libxslt
|
||||
, top-git, mercurial, darcs, subversion, breezy, openssl, bzip2, libxslt
|
||||
, guile, perl, postgresql, nukeReferences, git, boehmgc, nlohmann_json
|
||||
, docbook_xsl, openssh, gnused, coreutils, findutils, gzip, lzma, gnutar
|
||||
, rpm, dpkg, cdrkit, pixz, lib, boost, autoreconfHook, src ? null, version ? null
|
||||
@@ -80,7 +80,7 @@ in stdenv.mkDerivation rec {
|
||||
|
||||
buildInputs =
|
||||
[ makeWrapper autoconf automake libtool unzip nukeReferences sqlite libpqxx
|
||||
gitAndTools.top-git mercurial /*darcs*/ subversion breezy openssl bzip2 libxslt
|
||||
top-git mercurial /*darcs*/ subversion breezy openssl bzip2 libxslt
|
||||
perlDeps perl nix
|
||||
postgresql # for running the tests
|
||||
nlohmann_json
|
||||
@@ -89,7 +89,7 @@ in stdenv.mkDerivation rec {
|
||||
|
||||
hydraPath = lib.makeBinPath (
|
||||
[ sqlite subversion openssh nix coreutils findutils pixz
|
||||
gzip bzip2 lzma gnutar unzip git gitAndTools.top-git mercurial /*darcs*/ gnused breezy
|
||||
gzip bzip2 lzma gnutar unzip git top-git mercurial /*darcs*/ gnused breezy
|
||||
] ++ lib.optionals stdenv.isLinux [ rpm dpkg cdrkit ] );
|
||||
|
||||
nativeBuildInputs = [ autoreconfHook pkgconfig ];
|
||||
|
||||
@@ -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;
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user