Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- final:
- previous:
- with final.haskell.lib;
- {
- dockerImage = final.dockerTools.buildImage {
- name = "site";
- tag = "latest";
- contents = [ "${final.site-static}/bin" ];
- config = {
- Cmd = [
- "${final.site-static}/bin/site"
- "run"
- ];
- WorkingDir = "/www/site";
- };
- };
- site-static = justStaticExecutables final.haskellPackages.site;
- haskellPackages = previous.haskellPackages.extend (
- self:
- super:
- {
- site = disableLibraryProfiling (super.callCabal2nix "site" (../. + "/site") {});
- }
- );
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement