diff options
author | ivanbrennan <ivan.brennan@gmail.com> | 2022-07-28 19:48:16 -0400 |
---|---|---|
committer | Bjørn Forsman <bjorn.forsman@gmail.com> | 2022-08-02 07:50:46 +0200 |
commit | d2042f91c1ad953825556be3ec2e53cf9a91fc77 (patch) | |
tree | 091d9af136ad5a853a48f30f23fb19d84a024535 | |
parent | 700f2bc99f925753a4a1975c8681889699349b7e (diff) | |
download | nixpkgs-d2042f91c1ad953825556be3ec2e53cf9a91fc77.tar nixpkgs-d2042f91c1ad953825556be3ec2e53cf9a91fc77.tar.gz nixpkgs-d2042f91c1ad953825556be3ec2e53cf9a91fc77.tar.bz2 nixpkgs-d2042f91c1ad953825556be3ec2e53cf9a91fc77.tar.lz nixpkgs-d2042f91c1ad953825556be3ec2e53cf9a91fc77.tar.xz nixpkgs-d2042f91c1ad953825556be3ec2e53cf9a91fc77.tar.zst nixpkgs-d2042f91c1ad953825556be3ec2e53cf9a91fc77.zip |
gpick: ensure GSettings schemas are available
Running gpick on a system where GSettings schemas are not provided (e.g. XMonad with no desktop environment), any attempt to save or export color info from gpick will cause gpick to crash: GLib-GIO-ERROR **: 19:12:55.095: No GSettings schemas are installed on the system The nixpkgs manual describes how to fix such errors: https://nixos.org/manual/nixpkgs/stable/#ssec-gnome-common-issues-no-schemas Adding wrapGAppsHook to the nativeBuildInputs appears to be all that was needed to fix the issue in this case.
-rw-r--r-- | pkgs/tools/misc/gpick/default.nix | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/pkgs/tools/misc/gpick/default.nix b/pkgs/tools/misc/gpick/default.nix index 0d39bb810b9..8edb12684ce 100644 --- a/pkgs/tools/misc/gpick/default.nix +++ b/pkgs/tools/misc/gpick/default.nix @@ -1,4 +1,15 @@ -{ stdenv, fetchFromGitHub, cmake, glib, boost, pkg-config, gtk3, ragel, lua, lib }: +{ stdenv +, fetchFromGitHub +, cmake +, glib +, wrapGAppsHook +, boost +, pkg-config +, gtk3 +, ragel +, lua +, lib +}: stdenv.mkDerivation rec { pname = "gpick"; @@ -11,7 +22,7 @@ stdenv.mkDerivation rec { sha256 = "sha256-Z67EJRtKJZLoTUtdMttVTLkzTV2F5rKZ96vaothLiFo="; }; - nativeBuildInputs = [ cmake pkg-config ]; + nativeBuildInputs = [ cmake pkg-config wrapGAppsHook ]; NIX_CFLAGS_COMPILE = "-I${glib.dev}/include/gio-unix-2.0"; buildInputs = [ boost gtk3 ragel lua ]; |