compton: use stub git function instead of patching

This commit is contained in:
Jörg Thalheim 2019-01-30 08:05:51 +00:00
parent 0658554ccc
commit 585d2d79a1
No known key found for this signature in database
GPG key ID: B3F5D81B0C6967C4

View file

@ -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" ];