Using the linux distribution nixos
, I have 2 similar problems:
I have to add my
custom_syntax_color_scheme.vim
file to the existing/share/vim/vim80/colors
folder in the nix store from existing packagenixos.vim
I have to add a
custom-tex-template.tex
file to the existing/share/ghc-8.2.2/x86_64-linux-ghc-8.2.2/pandoc-2.0.6/data/templates/
folder in the nix store from existing packagepandoc
(I suppose, otherwise it'snixos.texlive.combined.scheme-full
)
I have skimmed through the Nix-Pills, but I cannot make my mind about solving this particular problem: adding a configuration file to an existing derivation.
What is the Nix way of doing it?
I suppose I have to create a new derivation that include the file I want, but I don't know how and how the existing package will manage to include it.
My problem feels similar to How to add a file to /etc in NixOS? which now has an answer, but cannot be applied here.