tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
firewalld: wrap gui programs with qt6
Sizhe Zhao
9 months ago
ee19ecd4
3a1c054b
+32
-21
1 changed file
expand all
collapse all
unified
split
pkgs
by-name
fi
firewalld
package.nix
+32
-21
pkgs/by-name/fi/firewalld/package.nix
···
21
21
networkmanagerapplet,
22
22
pkg-config,
23
23
python3,
24
24
+
qt6,
24
25
sysctl,
25
26
wrapGAppsNoGuiHook,
26
27
withGui ? false,
···
72
73
--replace-fail "/usr/bin/nm-connection-editor" "${networkmanagerapplet}/bin/nm-connection-editor"
73
74
'';
74
75
75
75
-
nativeBuildInputs = [
76
76
-
autoconf
77
77
-
automake
78
78
-
docbook_xml_dtd_42
79
79
-
docbook-xsl-nons
80
80
-
glib
81
81
-
intltool
82
82
-
ipset
83
83
-
iptables
84
84
-
kmod
85
85
-
libxml2
86
86
-
libxslt
87
87
-
pkg-config
88
88
-
python3
89
89
-
python3.pkgs.wrapPython
90
90
-
sysctl
91
91
-
wrapGAppsNoGuiHook
92
92
-
];
76
76
+
nativeBuildInputs =
77
77
+
[
78
78
+
autoconf
79
79
+
automake
80
80
+
docbook_xml_dtd_42
81
81
+
docbook-xsl-nons
82
82
+
glib
83
83
+
intltool
84
84
+
ipset
85
85
+
iptables
86
86
+
kmod
87
87
+
libxml2
88
88
+
libxslt
89
89
+
pkg-config
90
90
+
python3
91
91
+
python3.pkgs.wrapPython
92
92
+
sysctl
93
93
+
wrapGAppsNoGuiHook
94
94
+
]
95
95
+
++ lib.optionals withGui [
96
96
+
qt6.wrapQtAppsHook
97
97
+
];
93
98
94
99
buildInputs =
95
100
[
···
105
110
++ lib.optionals withGui [
106
111
gtk3
107
112
libnotify
113
113
+
qt6.qtbase
108
114
];
109
115
110
116
preConfigure = ''
···
116
122
'';
117
123
118
124
dontWrapGApps = true;
125
125
+
dontWrapQtApps = true;
119
126
120
120
-
preFixup = ''
121
121
-
makeWrapperArgs+=("''${gappsWrapperArgs[@]}")
122
122
-
'';
127
127
+
preFixup =
128
128
+
''
129
129
+
makeWrapperArgs+=("''${gappsWrapperArgs[@]}")
130
130
+
''
131
131
+
+ lib.optionalString withGui ''
132
132
+
makeWrapperArgs+=("''${qtWrapperArgs[@]}")
133
133
+
'';
123
134
124
135
postFixup = ''
125
136
chmod +x $out/share/firewalld/*.py $out/share/firewalld/testsuite/python/*.py $out/share/firewalld/testsuite/{,integration/}testsuite