koreader-from-src: get deps compiling: lua-htmlparser, lpeg
This commit is contained in:
parent
e5d311188e
commit
6a6276c2e0
|
@ -14,6 +14,7 @@
|
||||||
, gnutar
|
, gnutar
|
||||||
, gtk3-x11
|
, gtk3-x11
|
||||||
, luajit
|
, luajit
|
||||||
|
# , lua51Packages
|
||||||
, perl
|
, perl
|
||||||
, pkg-config
|
, pkg-config
|
||||||
, ragel
|
, ragel
|
||||||
|
@ -23,6 +24,7 @@
|
||||||
, which
|
, which
|
||||||
}:
|
}:
|
||||||
let
|
let
|
||||||
|
# XXX: koreader assumes lua 5.1 in places -- is this really ok?
|
||||||
luajit_lua52 = luajit.override { enable52Compat = true; };
|
luajit_lua52 = luajit.override { enable52Compat = true; };
|
||||||
sources = import ./sources.nix;
|
sources = import ./sources.nix;
|
||||||
in
|
in
|
||||||
|
@ -76,12 +78,13 @@ stdenv.mkDerivation rec {
|
||||||
dpkg
|
dpkg
|
||||||
git
|
git
|
||||||
libtool
|
libtool
|
||||||
|
# lua51Packages.luarocks
|
||||||
makeWrapper
|
makeWrapper
|
||||||
perl # TODO: openssl might try to take a runtime dep on this; see nixpkg
|
perl # TODO: openssl might try to take a runtime dep on this; see nixpkg
|
||||||
pkg-config
|
pkg-config
|
||||||
ragel
|
ragel
|
||||||
which
|
which
|
||||||
# luajit_lua52.pkgs.luarocks
|
luajit_lua52.pkgs.luarocks
|
||||||
];
|
];
|
||||||
buildInputs = [
|
buildInputs = [
|
||||||
glib
|
glib
|
||||||
|
|
|
@ -108,8 +108,7 @@
|
||||||
source.hash = "sha256-AAw6I+MxDaxmGpjC5efxuBNw7Lx8FXwg2TEfl6LfPfQ=";
|
source.hash = "sha256-AAw6I+MxDaxmGpjC5efxuBNw7Lx8FXwg2TEfl6LfPfQ=";
|
||||||
};
|
};
|
||||||
lua-htmlparser = {
|
lua-htmlparser = {
|
||||||
# TODO: fails build
|
# Completed
|
||||||
# - `sh: line 1: luarocks: command not found`
|
|
||||||
source.url = "https://github.com/msva/lua-htmlparser";
|
source.url = "https://github.com/msva/lua-htmlparser";
|
||||||
source.rev = "5ce9a775a345cf458c0388d7288e246bb1b82bff";
|
source.rev = "5ce9a775a345cf458c0388d7288e246bb1b82bff";
|
||||||
source.hash = "sha256-aSTLSfqz/MIDFVRwtBlDNBUhPb7KqOl32/Y62Hdec1s=";
|
source.hash = "sha256-aSTLSfqz/MIDFVRwtBlDNBUhPb7KqOl32/Y62Hdec1s=";
|
||||||
|
@ -121,6 +120,7 @@
|
||||||
source.hash = "sha256-pfMNQFulW6AEwAVPxn9wUdbRg3ViHbGVCCke5NSIgTo=";
|
source.hash = "sha256-pfMNQFulW6AEwAVPxn9wUdbRg3ViHbGVCCke5NSIgTo=";
|
||||||
};
|
};
|
||||||
lua-rapidjson = {
|
lua-rapidjson = {
|
||||||
|
# Completed
|
||||||
source.url = "https://github.com/xpol/lua-rapidjson";
|
source.url = "https://github.com/xpol/lua-rapidjson";
|
||||||
source.rev = "242b40c8eaceb0cc43bcab88309736461cac1234";
|
source.rev = "242b40c8eaceb0cc43bcab88309736461cac1234";
|
||||||
source.hash = "sha256-y/czEVPtCt4uN1n49Qi7BrgZmkG+SDXlM5D2GvvO2qg=";
|
source.hash = "sha256-y/czEVPtCt4uN1n49Qi7BrgZmkG+SDXlM5D2GvvO2qg=";
|
||||||
|
@ -138,6 +138,9 @@
|
||||||
source.hash = "sha256-Y35QYNLznQmErr6rIjxLzw0/6Y7y8TbzD4yaEdgEljA=";
|
source.hash = "sha256-Y35QYNLznQmErr6rIjxLzw0/6Y7y8TbzD4yaEdgEljA=";
|
||||||
};
|
};
|
||||||
lua-Spore = {
|
lua-Spore = {
|
||||||
|
# TODO: fails with:
|
||||||
|
# Missing dependencies for lua-spore 0.3.1-1:
|
||||||
|
# luajson >= 1.3 (not installed)
|
||||||
source.url = "https://framagit.org/fperrad/lua-Spore";
|
source.url = "https://framagit.org/fperrad/lua-Spore";
|
||||||
source.rev = "tags/0.3.3";
|
source.rev = "tags/0.3.3";
|
||||||
source.hash = "sha256-wb7ykJsndoq0DazHpfXieUcBBptowYqD/eTTN/EK/6g=";
|
source.hash = "sha256-wb7ykJsndoq0DazHpfXieUcBBptowYqD/eTTN/EK/6g=";
|
||||||
|
@ -236,6 +239,7 @@
|
||||||
hash = "sha256-zPU2YgpFRY0muoOIepg7loJwAekqE4R7ReSSXMiRMXg=";
|
hash = "sha256-zPU2YgpFRY0muoOIepg7loJwAekqE4R7ReSSXMiRMXg=";
|
||||||
};
|
};
|
||||||
lpeg = {
|
lpeg = {
|
||||||
|
# Completed
|
||||||
url = "http://distcache.FreeBSD.org/ports-distfiles/lpeg-1.0.2.tar.gz";
|
url = "http://distcache.FreeBSD.org/ports-distfiles/lpeg-1.0.2.tar.gz";
|
||||||
hash = "sha256-SNZldgUbbHg4j6rQm3BJMJMmRYj80PJY3aqxzdShX/4=";
|
hash = "sha256-SNZldgUbbHg4j6rQm3BJMJMmRYj80PJY3aqxzdShX/4=";
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue
Block a user