diff --git a/pkgs/applications/window-managers/compton/default.nix b/pkgs/applications/window-managers/compton/default.nix index a9c83e115b9..9b5e190a692 100644 --- a/pkgs/applications/window-managers/compton/default.nix +++ b/pkgs/applications/window-managers/compton/default.nix @@ -89,10 +89,9 @@ let libxdg_basedir ]; - postPatch = '' - substituteInPlace meson.build \ - --replace "run_command('git', 'describe')" \ - "run_command('echo', 'v${version}')" + preBuild = '' + git() { echo "v${version}"; } + export -f git ''; NIX_CFLAGS_COMPILE = [ "-fno-strict-aliasing" ];