git.iko.soy/typeable/nixpkgs
on master help sign in
barrier: add openssl runtime dependency (#75490)

* barrier: add openssl runtime dependency The barrier GUI creates an SSL certificate at runtime using OpenSSL. We add openssl to the path to enable this feature. * barrier: fix GLib-GIO-ERROR rg.gtk.Settings.FileChooser When you use the Barrier menu item in the GUI to save the configuration, the program crashes. wrapGAppsHook fixes this issue. Error was: GLib-GIO-ERROR **: 19:03:29.155: Settings schema 'org.gtk.Settings.FileChooser' does not contain a key nixos * barrier: move cmake buildInputs to nativeBuildInputs

commit797b706daf2ac6223f8d15220fa86376fceb24ec authorRyan Orendorff <56783407+orendorff-mi@users.noreply.github.com> dateWed 18 Dec 2019, 09:32 (7 years ago) parentdae6544
1 file changed+7−1
pkgs/applications/misc/barrier/default.nix+7−1
pkgs/applications/misc/barrier/default.nix+7−1
@@ -1,4 +1,5 @@
11{ stdenv, fetchFromGitHub, cmake, curl, xorg, avahi, qtbase, mkDerivation,
2+ openssl, wrapGAppsHook,
23 avahiWithLibdnssdCompat ? avahi.override { withLibdnssdCompat = true; }
34}:
45
@@ -13,12 +14,17 @@ mkDerivation rec {
1314 sha256 = "1gbg3p7c0vcsdzsjj1ssx6k8xpj3rpyvais12266f0xvnbvihczd";
1415 };
1516
16− buildInputs = [ cmake curl xorg.libX11 xorg.libXext xorg.libXtst avahiWithLibdnssdCompat qtbase ];
17+ buildInputs = [ curl xorg.libX11 xorg.libXext xorg.libXtst avahiWithLibdnssdCompat qtbase ];
18+ nativeBuildInputs = [ cmake wrapGAppsHook ];
1719
1820 postFixup = ''
1921 substituteInPlace "$out/share/applications/barrier.desktop" --replace "Exec=barrier" "Exec=$out/bin/barrier"
2022 '';
2123
24+ qtWrapperArgs = [
25+ ''--prefix PATH : ${stdenv.lib.makeBinPath [ openssl ]}''
26+ ];
27+
2228 meta = {
2329 description = "Open-source KVM software";
2430 longDescription = ''