compton: use stub git function instead of patching
commit585d2d79a1b40cc5a845deaf79195017ccfd5b93
authorJörg Thalheim <joerg@thalheim.io>
dateWed 30 Jan 2019, 08:05 (8 years ago)
parent0658554
pkgs/applications/window-managers/compton/default.nix+3−4
@@ -89,10 +89,9 @@ let
8989 libxdg_basedir
9090 ];
9191
92− postPatch = ''
93− substituteInPlace meson.build \
94− --replace "run_command('git', 'describe')" \
95− "run_command('echo', 'v${version}')"
92+ preBuild = ''
93+ git() { echo "v${version}"; }
94+ export -f git
9695 '';
9796
9897 NIX_CFLAGS_COMPILE = [ "-fno-strict-aliasing" ];