From 636a41106963acfb02dfacdf711ab96cd117a89b Mon Sep 17 00:00:00 2001 From: Ryan Horiguchi Date: Wed, 29 Sep 2021 13:40:21 +0200 Subject: [PATCH] neofetch: apply patch to fix neofetch returning wrong icon theme --- pkgs/tools/misc/neofetch/default.nix | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/pkgs/tools/misc/neofetch/default.nix b/pkgs/tools/misc/neofetch/default.nix index 3d4bf8500ba..77af8d5d788 100644 --- a/pkgs/tools/misc/neofetch/default.nix +++ b/pkgs/tools/misc/neofetch/default.nix @@ -1,5 +1,5 @@ { lib, stdenvNoCC, fetchFromGitHub, bash, makeWrapper, pciutils -, x11Support ? true, ueberzug +, x11Support ? true, ueberzug, fetchpatch }: stdenvNoCC.mkDerivation rec { @@ -13,6 +13,14 @@ stdenvNoCC.mkDerivation rec { sha256 = "sha256-PZjFF/K7bvPIjGVoGqaoR8pWE6Di/qJVKFNcIz7G8xE="; }; + patches = [ + (fetchpatch { + url = "https://github.com/dylanaraps/neofetch/commit/413c32e55dc16f0360f8e84af2b59fe45505f81b.patch"; + sha256 = "1fapdg9z79f0j3vw7fgi72b54aw4brn42bjsj48brbvg3ixsciph"; + name = "avoid_overwriting_gio_extra_modules_env_var.patch"; + }) + ]; + strictDeps = true; buildInputs = [ bash ]; nativeBuildInputs = [ makeWrapper ];