fix: Patch the sieve file that is given to sievec

CA derivations apparently add a /nix/store argument to store paths,
even if they shouldn’t

see #70
This commit is contained in:
Charlotte 🦝 Delenk 2022-03-16 08:45:29 +01:00
parent 7c34a96f1c
commit 50e0843938
Signed by: darkkirb
GPG key ID: AB2BD8DAF2E37122

View file

@ -15,6 +15,7 @@ stdenv.mkDerivation {
copyPhase = '' copyPhase = ''
mkdir $out mkdir $out
cp $src $out/${name}.sieve cp $src $out/${name}.sieve
sed -i 's|/nix/store/||g' $out/${name}.sieve
chmod 0755 $out/${name}.sieve chmod 0755 $out/${name}.sieve
set +x set +x
''; '';