2021-03-01 01:52:44 +00:00
|
|
|
|
{ lib
|
|
|
|
|
, stdenv
|
|
|
|
|
, fetchFromGitHub
|
|
|
|
|
, pkg-config
|
|
|
|
|
, wrapGAppsHook
|
|
|
|
|
, help2man
|
|
|
|
|
, glib-networking
|
|
|
|
|
, gst_all_1
|
|
|
|
|
, gtk3
|
|
|
|
|
, luafilesystem
|
|
|
|
|
, luajit
|
|
|
|
|
, sqlite
|
|
|
|
|
, webkitgtk
|
2019-02-24 10:47:11 +00:00
|
|
|
|
}:
|
2018-03-18 11:17:59 +00:00
|
|
|
|
|
2019-06-13 12:01:10 +01:00
|
|
|
|
stdenv.mkDerivation rec {
|
2019-02-24 10:47:11 +00:00
|
|
|
|
pname = "luakit";
|
2021-03-01 01:52:44 +00:00
|
|
|
|
version = "2.3";
|
2019-02-24 10:47:11 +00:00
|
|
|
|
|
2018-03-18 11:17:59 +00:00
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
|
owner = "luakit";
|
2020-10-10 05:58:48 +01:00
|
|
|
|
repo = pname;
|
2019-02-24 10:47:11 +00:00
|
|
|
|
rev = version;
|
2021-03-01 01:52:44 +00:00
|
|
|
|
hash = "sha256-5YeJkbWk1wHxWXqWOvhEDeScWPU/aRVhuOWRHLSHVZM=";
|
2018-03-18 11:17:59 +00:00
|
|
|
|
};
|
|
|
|
|
|
2019-02-24 10:47:11 +00:00
|
|
|
|
nativeBuildInputs = [
|
2021-03-01 01:52:44 +00:00
|
|
|
|
pkg-config
|
|
|
|
|
help2man
|
|
|
|
|
wrapGAppsHook
|
2019-02-24 10:47:11 +00:00
|
|
|
|
];
|
|
|
|
|
buildInputs = [
|
2021-03-01 01:52:44 +00:00
|
|
|
|
gtk3
|
2018-12-30 14:20:55 +00:00
|
|
|
|
glib-networking # TLS support
|
2021-03-01 01:52:44 +00:00
|
|
|
|
luafilesystem
|
|
|
|
|
luajit
|
|
|
|
|
sqlite
|
|
|
|
|
webkitgtk
|
|
|
|
|
] ++ ( with gst_all_1; [
|
|
|
|
|
gstreamer
|
|
|
|
|
gst-plugins-base
|
|
|
|
|
gst-plugins-good
|
|
|
|
|
gst-plugins-bad
|
|
|
|
|
gst-plugins-ugly
|
|
|
|
|
gst-libav
|
|
|
|
|
]);
|
|
|
|
|
|
2018-03-18 11:17:59 +00:00
|
|
|
|
|
2021-03-01 01:52:44 +00:00
|
|
|
|
# build-utils/docgen/gen.lua:2: module 'lib.lousy.util' not found
|
|
|
|
|
# TODO: why is not this the default? The test runner adds
|
|
|
|
|
# ';./lib/?.lua;./lib/?/init.lua' to package.path, but the build-utils
|
|
|
|
|
# scripts don't add an equivalent
|
2019-02-24 10:47:11 +00:00
|
|
|
|
preBuild = ''
|
2019-08-21 14:09:15 +01:00
|
|
|
|
export LUA_PATH="$LUA_PATH;./?.lua;./?/init.lua"
|
2018-03-18 11:17:59 +00:00
|
|
|
|
'';
|
|
|
|
|
|
2019-02-24 10:47:11 +00:00
|
|
|
|
makeFlags = [
|
|
|
|
|
"DEVELOPMENT_PATHS=0"
|
|
|
|
|
"USE_LUAJIT=1"
|
|
|
|
|
"INSTALLDIR=${placeholder "out"}"
|
|
|
|
|
"PREFIX=${placeholder "out"}"
|
|
|
|
|
"USE_GTK3=1"
|
|
|
|
|
"XDGPREFIX=${placeholder "out"}/etc/xdg"
|
|
|
|
|
];
|
2018-03-18 11:17:59 +00:00
|
|
|
|
|
2019-02-24 10:47:11 +00:00
|
|
|
|
preFixup = let
|
2018-03-18 11:17:59 +00:00
|
|
|
|
luaKitPath = "$out/share/luakit/lib/?/init.lua;$out/share/luakit/lib/?.lua";
|
|
|
|
|
in ''
|
2019-02-24 10:47:11 +00:00
|
|
|
|
gappsWrapperArgs+=(
|
|
|
|
|
--prefix XDG_CONFIG_DIRS : "$out/etc/xdg"
|
2019-08-21 14:09:15 +01:00
|
|
|
|
--prefix LUA_PATH ';' "${luaKitPath};$LUA_PATH"
|
|
|
|
|
--prefix LUA_CPATH ';' "$LUA_CPATH"
|
2019-02-24 10:47:11 +00:00
|
|
|
|
)
|
2018-03-18 11:17:59 +00:00
|
|
|
|
'';
|
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
|
meta = with lib; {
|
2021-03-01 01:52:44 +00:00
|
|
|
|
homepage = "https://luakit.github.io/";
|
2020-09-22 01:24:07 +01:00
|
|
|
|
description = "Fast, small, webkit-based browser framework extensible in Lua";
|
|
|
|
|
longDescription = ''
|
|
|
|
|
Luakit is a highly configurable browser framework based on the WebKit web
|
|
|
|
|
content engine and the GTK+ toolkit. It is very fast, extensible with Lua,
|
|
|
|
|
and licensed under the GNU GPLv3 license. It is primarily targeted at
|
|
|
|
|
power users, developers and anyone who wants to have fine-grained control
|
|
|
|
|
over their web browser’s behaviour and interface.
|
|
|
|
|
'';
|
|
|
|
|
license = licenses.gpl3Only;
|
|
|
|
|
maintainers = [ maintainers.AndersonTorres ];
|
2021-03-01 01:52:44 +00:00
|
|
|
|
platforms = platforms.unix;
|
2018-03-18 11:17:59 +00:00
|
|
|
|
};
|
|
|
|
|
}
|