ocamlPackages.hxd: 0.3.2 -> 0.3.3 (#364231)
[NixPkgs.git] / pkgs / development / lua-modules / nfd / zenity.patch
blob59a91e0e546c3d94343058ba364782eccf35fdb3
1 diff --git a/lua/Makefile.linux b/lua/Makefile.linux
2 index 9f5aa68..77660d4 100644
3 --- a/lua/Makefile.linux
4 +++ b/lua/Makefile.linux
5 @@ -37,5 +37,5 @@ nfd_zenity.o: src/nfd_zenity.c
6 clean:
7 rm nfd_common.o nfd_gtk.o nfd_wrap_lua.o nfd.so
9 -install: nfd.so
10 - cp nfd.so $(INST_LIBDIR)
11 +install:
12 + cp nfd*.so $(INST_LIBDIR)
13 diff --git a/lua/nfd-scm-1.rockspec b/lua/nfd-scm-1.rockspec
14 index 503399d..2d0a7da 100644
15 --- a/lua/nfd-scm-1.rockspec
16 +++ b/lua/nfd-scm-1.rockspec
17 @@ -17,9 +17,6 @@ supported_platforms = { "linux", "macosx", "windows" }
18 external_dependencies = {
19 platforms = {
20 linux = {
21 - gtk3 = {
22 - library = "gtk-3",
23 - }
27 @@ -28,6 +25,7 @@ build = {
28 linux = {
29 type = "make",
30 makefile = "lua/Makefile.linux",
31 + build_target = "nfd_zenity.so",
32 build_variables = {
33 CFLAGS="$(CFLAGS)",
34 LIBFLAG="$(LIBFLAG)",
35 diff --git a/src/nfd_zenity.c b/src/nfd_zenity.c
36 index 43ccc6d..3fcdea0 100644
37 --- a/src/nfd_zenity.c
38 +++ b/src/nfd_zenity.c
39 @@ -109,6 +109,8 @@ ZenityCommon(char** command,
40 command[i] = tmp;
43 + // caller always sets command[0] to "zenity"
44 + command[0] = strdup("@zenity@/bin/zenity");
45 AddFiltersToCommandArgs(command, commandLen, filterList);
47 int byteCount = 0;