From f3cbc8160802fe91771993f1a9f32fe3c0bfb140 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Sat, 2 Oct 2021 23:24:44 +0300 Subject: [PATCH] [Backport release-21.05] analog: Fix substitution so it can find its language files (#140313) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Sandro Co-authored-by: Philippe Hürlimann Co-authored-by: Artturi --- pkgs/tools/admin/analog/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/tools/admin/analog/default.nix b/pkgs/tools/admin/analog/default.nix index d85e5365d63..e2e790a7f66 100644 --- a/pkgs/tools/admin/analog/default.nix +++ b/pkgs/tools/admin/analog/default.nix @@ -14,7 +14,7 @@ stdenv.mkDerivation rec { postPatch = '' sed -i src/anlghead.h \ -e "s|#define DEFAULTCONFIGFILE .*|#define DEFAULTCONFIGFILE \"$out/etc/analog.cfg\"|g" \ - -e "s|#define LANGDIR .*|#define LANGDIR \"$out/share/$pname}/lang/\"|g" + -e "s|#define LANGDIR .*|#define LANGDIR \"$out/share/${pname}/lang/\"|g" substituteInPlace src/Makefile --replace "gcc" "${stdenv.cc.targetPrefix}cc" '';