[Nix-dev] Including binary-only derivation in nixops deploy.
Kevin Cox
kevincox at kevincox.ca
Fri Feb 12 04:03:05 CET 2016
Hello all. I have a possibly strange question but I was hoping that you
could help me out. I am currently using nixops to manage a couple of
servers and have a couple custom derivations for personal packages.
While managing the derivation in my nixops config isn't terrible I
wanted to manage the derivations in each project so that I can use nix
to build the project in CI and use nix-shell for development. Another
benefit of using a binary is that I know that dependencies won't
change, and that the package has been tested with the exact
dependencies it will be shipping to production.
So long story short I have uploaded the derivation to a binary cache
and I was hoping to use it in a nixops deploy. However I can't figure
out how to get it to work (if it is possible). `nix-store
-r /nix/store/01kymbkb0a1sc99y72wzn5b4gcjdlbnm-dontsayit-nginx` works
fine, the package and all of its dependencies are installed to the
local store. However I can't figure out how to use it in a nixops
config.
The naive approach of just including the path in a file (in my case an
nginx config) doesn't work as it isn't being scanned for that path and
the dependency doesn't get picked up. Interpolating it as a path also
doesn't work as the file gets copied from the store and put into the
store under a different hash, losing all dependency information.
I tried playing around with .drv descriptions but couldn't figure out
how to get it to work either.
I would appreciate any help or recommendations for alternative
solutions.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.science.uu.nl/pipermail/nix-dev/attachments/20160211/bd8e561e/attachment-0001.html
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 213 bytes
Desc: This is a digitally signed message part
Url : http://lists.science.uu.nl/pipermail/nix-dev/attachments/20160211/bd8e561e/attachment-0002.bin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 5658 bytes
Desc: not available
Url : http://lists.science.uu.nl/pipermail/nix-dev/attachments/20160211/bd8e561e/attachment-0003.bin
More information about the nix-dev
mailing list