From b28346740171ba85992d57cb9072afb7900c821d Mon Sep 17 00:00:00 2001 From: Norbert Melzer Date: Sat, 20 Aug 2022 23:00:04 +0200 Subject: berry: patch the version in the configure script This fixes how berry internalizes its own version. By default a static 0.1.7 is and overriden if a `.git` folder does exist. In that case `git describe` is used and the version parsed out of it. This PR unconditionally patches the version in the configure file as that appears to be easier and more idiomatic than a "fake git". --- pkgs/applications/window-managers/berry/default.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkgs/applications/window-managers/berry/default.nix b/pkgs/applications/window-managers/berry/default.nix index 5c2c7dcb5ce45..96054e86f5054 100644 --- a/pkgs/applications/window-managers/berry/default.nix +++ b/pkgs/applications/window-managers/berry/default.nix @@ -39,6 +39,10 @@ stdenv.mkDerivation rec { freetype ]; + postPatch = '' + sed -i --regexp-extended 's/(pkg_verstr=").*(")/\1${version}\2/' configure + ''; + preConfigure = '' patchShebangs configure ''; -- cgit 1.4.1