qcal: move sample config to prevent collision

qcard has a sample config file with the same name, if using home-manager
with both qcard and qcal would then lead to a collision
This commit is contained in:
Anton Mosich 2023-08-23 00:36:51 +02:00 committed by Anderson Torres
parent 48b8ce5925
commit 930336411c

View file

@ -18,12 +18,12 @@ buildGoModule rec {
# to that config file in the nix store
preBuild = ''
substituteInPlace helpers.go \
--replace " config-sample.json " " $out/share/config-sample.json "
--replace " config-sample.json " " $out/share/qcal/config-sample.json "
'';
postInstall = ''
mkdir -p $out/share
cp config-sample.json $out/share/
mkdir -p $out/share/qcal
cp config-sample.json $out/share/qcal/
'';
meta = with lib; {