2024-10-13 15:11:10 +00:00
|
|
|
|
{
|
|
|
|
|
lib,
|
|
|
|
|
fetchFromGitHub,
|
|
|
|
|
glib-networking,
|
|
|
|
|
gst_all_1,
|
|
|
|
|
gtk3,
|
|
|
|
|
help2man,
|
|
|
|
|
luajit,
|
|
|
|
|
luajitPackages,
|
|
|
|
|
pkg-config,
|
|
|
|
|
sqlite,
|
|
|
|
|
stdenv,
|
|
|
|
|
webkitgtk_4_0,
|
|
|
|
|
wrapGAppsHook3,
|
2019-02-24 10:47:11 +00:00
|
|
|
|
}:
|
2018-03-18 11:17:59 +00:00
|
|
|
|
|
2024-10-13 14:52:16 +00:00
|
|
|
|
let
|
|
|
|
|
inherit (luajitPackages) luafilesystem;
|
|
|
|
|
in
|
2024-10-13 15:11:10 +00:00
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
2019-02-24 10:47:11 +00:00
|
|
|
|
pname = "luakit";
|
2022-12-09 17:22:22 +00:00
|
|
|
|
version = "2.3.3";
|
2019-02-24 10:47:11 +00:00
|
|
|
|
|
2018-03-18 11:17:59 +00:00
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
|
owner = "luakit";
|
2024-10-13 15:11:10 +00:00
|
|
|
|
repo = "luakit";
|
|
|
|
|
rev = finalAttrs.version;
|
2022-12-09 17:22:22 +00:00
|
|
|
|
hash = "sha256-DtoixcLq+ddbacTAo+Qq6q4k1i6thirACw1zqUeOxXo=";
|
2018-03-18 11:17:59 +00:00
|
|
|
|
};
|
|
|
|
|
|
2019-02-24 10:47:11 +00:00
|
|
|
|
nativeBuildInputs = [
|
2024-10-13 15:11:10 +00:00
|
|
|
|
luajit
|
2021-03-01 01:52:44 +00:00
|
|
|
|
pkg-config
|
|
|
|
|
help2man
|
2024-04-26 20:24:03 +00:00
|
|
|
|
wrapGAppsHook3
|
2019-02-24 10:47:11 +00:00
|
|
|
|
];
|
2021-03-01 01:52:44 +00:00
|
|
|
|
|
2024-10-13 15:11:10 +00:00
|
|
|
|
buildInputs =
|
|
|
|
|
[
|
|
|
|
|
glib-networking # TLS support
|
|
|
|
|
gtk3
|
|
|
|
|
luafilesystem
|
|
|
|
|
sqlite
|
|
|
|
|
webkitgtk_4_0
|
|
|
|
|
]
|
|
|
|
|
++ (with gst_all_1; [
|
|
|
|
|
gst-libav
|
|
|
|
|
gst-plugins-bad
|
|
|
|
|
gst-plugins-base
|
|
|
|
|
gst-plugins-good
|
|
|
|
|
gst-plugins-ugly
|
|
|
|
|
gstreamer
|
|
|
|
|
]);
|
|
|
|
|
|
|
|
|
|
strictDeps = true;
|
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 13:09:15 +00: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
|
|
|
|
|
2024-10-13 15:11:10 +00:00
|
|
|
|
preFixup =
|
|
|
|
|
let
|
|
|
|
|
luaKitPath = "$out/share/luakit/lib/?/init.lua;$out/share/luakit/lib/?.lua";
|
|
|
|
|
in
|
|
|
|
|
''
|
|
|
|
|
gappsWrapperArgs+=(
|
|
|
|
|
--prefix XDG_CONFIG_DIRS : "$out/etc/xdg"
|
|
|
|
|
--prefix LUA_PATH ';' "${luaKitPath};$LUA_PATH"
|
|
|
|
|
--prefix LUA_CPATH ';' "$LUA_CPATH"
|
|
|
|
|
)
|
|
|
|
|
'';
|
2018-03-18 11:17:59 +00:00
|
|
|
|
|
2024-10-13 15:11:10 +00:00
|
|
|
|
meta = {
|
2021-03-01 01:52:44 +00:00
|
|
|
|
homepage = "https://luakit.github.io/";
|
2020-09-22 00:24:07 +00: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.
|
|
|
|
|
'';
|
2024-10-13 15:11:10 +00:00
|
|
|
|
license = lib.licenses.gpl3Only;
|
|
|
|
|
mainProgram = "luakit";
|
|
|
|
|
maintainers = with lib.maintainers; [ AndersonTorres ];
|
|
|
|
|
platforms = lib.platforms.unix;
|
2018-03-18 11:17:59 +00:00
|
|
|
|
};
|
2024-10-13 15:11:10 +00:00
|
|
|
|
})
|