Skip to content

Commit 1bbd47e

Browse files
authored
luakit: migrate to by-name (#348289)
2 parents 2997153 + 3539d05 commit 1bbd47e

File tree

2 files changed

+56
-50
lines changed

2 files changed

+56
-50
lines changed
Lines changed: 56 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -1,50 +1,58 @@
1-
{ lib
2-
, stdenv
3-
, fetchFromGitHub
4-
, pkg-config
5-
, wrapGAppsHook3
6-
, help2man
7-
, glib-networking
8-
, gst_all_1
9-
, gtk3
10-
, luafilesystem
11-
, luajit
12-
, sqlite
13-
, webkitgtk_4_0
1+
{
2+
lib,
3+
fetchFromGitHub,
4+
glib-networking,
5+
gst_all_1,
6+
gtk3,
7+
help2man,
8+
luajit,
9+
luajitPackages,
10+
pkg-config,
11+
sqlite,
12+
stdenv,
13+
webkitgtk_4_0,
14+
wrapGAppsHook3,
1415
}:
1516

16-
stdenv.mkDerivation rec {
17+
let
18+
inherit (luajitPackages) luafilesystem;
19+
in
20+
stdenv.mkDerivation (finalAttrs: {
1721
pname = "luakit";
1822
version = "2.3.3";
1923

2024
src = fetchFromGitHub {
2125
owner = "luakit";
22-
repo = pname;
23-
rev = version;
26+
repo = "luakit";
27+
rev = finalAttrs.version;
2428
hash = "sha256-DtoixcLq+ddbacTAo+Qq6q4k1i6thirACw1zqUeOxXo=";
2529
};
2630

2731
nativeBuildInputs = [
32+
luajit
2833
pkg-config
2934
help2man
3035
wrapGAppsHook3
3136
];
32-
buildInputs = [
33-
gtk3
34-
glib-networking # TLS support
35-
luafilesystem
36-
luajit
37-
sqlite
38-
webkitgtk_4_0
39-
] ++ ( with gst_all_1; [
40-
gstreamer
41-
gst-plugins-base
42-
gst-plugins-good
43-
gst-plugins-bad
44-
gst-plugins-ugly
45-
gst-libav
46-
]);
4737

38+
buildInputs =
39+
[
40+
glib-networking # TLS support
41+
gtk3
42+
luafilesystem
43+
sqlite
44+
webkitgtk_4_0
45+
]
46+
++ (with gst_all_1; [
47+
gst-libav
48+
gst-plugins-bad
49+
gst-plugins-base
50+
gst-plugins-good
51+
gst-plugins-ugly
52+
gstreamer
53+
]);
54+
55+
strictDeps = true;
4856

4957
# build-utils/docgen/gen.lua:2: module 'lib.lousy.util' not found
5058
# TODO: why is not this the default? The test runner adds
@@ -63,29 +71,31 @@ stdenv.mkDerivation rec {
6371
"XDGPREFIX=${placeholder "out"}/etc/xdg"
6472
];
6573

66-
preFixup = let
67-
luaKitPath = "$out/share/luakit/lib/?/init.lua;$out/share/luakit/lib/?.lua";
68-
in ''
69-
gappsWrapperArgs+=(
70-
--prefix XDG_CONFIG_DIRS : "$out/etc/xdg"
71-
--prefix LUA_PATH ';' "${luaKitPath};$LUA_PATH"
72-
--prefix LUA_CPATH ';' "$LUA_CPATH"
73-
)
74-
'';
74+
preFixup =
75+
let
76+
luaKitPath = "$out/share/luakit/lib/?/init.lua;$out/share/luakit/lib/?.lua";
77+
in
78+
''
79+
gappsWrapperArgs+=(
80+
--prefix XDG_CONFIG_DIRS : "$out/etc/xdg"
81+
--prefix LUA_PATH ';' "${luaKitPath};$LUA_PATH"
82+
--prefix LUA_CPATH ';' "$LUA_CPATH"
83+
)
84+
'';
7585

76-
meta = with lib; {
86+
meta = {
7787
homepage = "https://luakit.github.io/";
7888
description = "Fast, small, webkit-based browser framework extensible in Lua";
79-
mainProgram = "luakit";
8089
longDescription = ''
8190
Luakit is a highly configurable browser framework based on the WebKit web
8291
content engine and the GTK+ toolkit. It is very fast, extensible with Lua,
8392
and licensed under the GNU GPLv3 license. It is primarily targeted at
8493
power users, developers and anyone who wants to have fine-grained control
8594
over their web browser’s behaviour and interface.
8695
'';
87-
license = licenses.gpl3Only;
88-
maintainers = [ maintainers.AndersonTorres ];
89-
platforms = platforms.unix;
96+
license = lib.licenses.gpl3Only;
97+
mainProgram = "luakit";
98+
maintainers = with lib.maintainers; [ AndersonTorres ];
99+
platforms = lib.platforms.unix;
90100
};
91-
}
101+
})

pkgs/top-level/all-packages.nix

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30767,10 +30767,6 @@ with pkgs;
3076730767

3076830768
lime = callPackage ../development/libraries/lime { };
3076930769

30770-
luakit = callPackage ../applications/networking/browsers/luakit {
30771-
inherit (luajitPackages) luafilesystem;
30772-
};
30773-
3077430770
looking-glass-client = callPackage ../applications/virtualization/looking-glass-client { };
3077530771

3077630772
ltc-tools = callPackage ../applications/audio/ltc-tools { };

0 commit comments

Comments
 (0)