Advertisement
Guest User

overlay.nix

a guest
Jun 23rd, 2018
176
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.85 KB | None | 0 0
  1. final:
  2. previous:
  3. with final.haskell.lib;
  4. {
  5. dockerImage = final.dockerTools.buildImage {
  6. name = "site";
  7. tag = "latest";
  8. contents = [ "${final.site-static}/bin" ];
  9. config = {
  10. Cmd = [
  11. "${final.site-static}/bin/site"
  12. "run"
  13. ];
  14. WorkingDir = "/www/site";
  15. };
  16. };
  17.  
  18. site-static = justStaticExecutables final.haskellPackages.site;
  19.  
  20. haskellPackages = previous.haskellPackages.extend (
  21. self:
  22. super:
  23. {
  24. site = disableLibraryProfiling (super.callCabal2nix "site" (../. + "/site") {});
  25. }
  26. );
  27. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement