From 585d2d79a1b40cc5a845deaf79195017ccfd5b93 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Thalheim?= Date: Wed, 30 Jan 2019 08:05:51 +0000 Subject: [PATCH] compton: use stub git function instead of patching --- pkgs/applications/window-managers/compton/default.nix | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) 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" ];