summary refs log tree commit diff
path: root/pkgs/development/ruby-modules/gem-config
diff options
context:
space:
mode:
authormidchildan <git@midchildan.org>2018-11-14 12:12:30 +0900
committerJan Tojnar <jtojnar@gmail.com>2018-11-30 21:35:25 +0100
commit6fa5ea6e6b5ccbcd1e360fe61eb58438123e5143 (patch)
treef25ae2199cc2bb2afc3e34eb7595a8bcf2890954 /pkgs/development/ruby-modules/gem-config
parent7ee05feb4e8e8f30c09f3d2a4fe2defaed9ce6e2 (diff)
downloadnixpkgs-6fa5ea6e6b5ccbcd1e360fe61eb58438123e5143.tar
nixpkgs-6fa5ea6e6b5ccbcd1e360fe61eb58438123e5143.tar.gz
nixpkgs-6fa5ea6e6b5ccbcd1e360fe61eb58438123e5143.tar.bz2
nixpkgs-6fa5ea6e6b5ccbcd1e360fe61eb58438123e5143.tar.lz
nixpkgs-6fa5ea6e6b5ccbcd1e360fe61eb58438123e5143.tar.xz
nixpkgs-6fa5ea6e6b5ccbcd1e360fe61eb58438123e5143.tar.zst
nixpkgs-6fa5ea6e6b5ccbcd1e360fe61eb58438123e5143.zip
gem-config: Add missing dependencies for gio and gtk2
Diffstat (limited to 'pkgs/development/ruby-modules/gem-config')
-rw-r--r--pkgs/development/ruby-modules/gem-config/default.nix5
1 files changed, 3 insertions, 2 deletions
diff --git a/pkgs/development/ruby-modules/gem-config/default.nix b/pkgs/development/ruby-modules/gem-config/default.nix
index c429eaec035..cf12b56a36e 100644
--- a/pkgs/development/ruby-modules/gem-config/default.nix
+++ b/pkgs/development/ruby-modules/gem-config/default.nix
@@ -23,6 +23,7 @@
 , cmake, libssh2, openssl, mysql, darwin, git, perl, pcre, gecode_3, curl
 , msgpack, qt59, libsodium, snappy, libossp_uuid, lxc, libpcap, xorg, gtk2, buildRubyGem
 , cairo, re2, rake, gobjectIntrospection, gdk_pixbuf, zeromq, graphicsmagick, libcxx, file
+, libselinux ? null, libsepol ? null
 }@args:
 
 let
@@ -156,7 +157,7 @@ in
 
   gio2 = attrs: {
     nativeBuildInputs = [ pkgconfig ];
-    buildInputs = [ gtk2 pcre gobjectIntrospection ];
+    buildInputs = [ gtk2 pcre gobjectIntrospection ] ++ lib.optionals stdenv.isLinux [ utillinux libselinux libsepol ];
   };
 
   gitlab-markup = attrs: { meta.priority = 1; };
@@ -167,7 +168,7 @@ in
   };
 
   gtk2 = attrs: {
-    nativeBuildInputs = [ pkgconfig ];
+    nativeBuildInputs = [ pkgconfig ] ++ lib.optionals stdenv.isLinux [ utillinux libselinux libsepol ];
     buildInputs = [ gtk2 pcre xorg.libpthreadstubs xorg.libXdmcp];
     # CFLAGS must be set for this gem to detect gdkkeysyms.h correctly
     CFLAGS = "-I${gtk2.dev}/include/gtk-2.0 -I/non-existent-path";