/dhall-aws-cloudformation/gh-pages/gh-pages/default.nix.html.html

Copy path to clipboard

Source

<!DOCTYPE HTML><html><head><title>/gh-pages/default.nix.html</title><link rel="stylesheet" type="text/css" href="../index.css"><link rel="stylesheet" type="text/css" href="https://fonts.googleapis.com/css2?family=Fira+Code:wght@400;500;600;700&amp;family=Lato:ital,wght@0,400;0,700;1,400&amp;display=swap"><script type="text/javascript" src="../index.js"></script><meta charset="UTF-8"></head><body><div class="nav-bar"><img class="dhall-icon" src="../dhall-icon.svg"><p class="package-title">dhall-aws-cloudformation</p><div class="nav-bar-content-divider"></div><a id="switch-light-dark-mode" class="nav-option">Switch Light/Dark Mode</a></div><div class="main-container"><h2 class="doc-title"><span class="crumb-divider">/</span><a href="../index.html">dhall-aws-cloudformation</a><span class="crumb-divider">/</span><a class="title-crumb" href="index.html">gh-pages</a><span class="crumb-divider">/</span><span class="title-crumb" href="index.html">default.nix.html</span></h2><a class="copy-to-clipboard" data-path="https://raw.githubusercontent.com/jcouyang/dhall-aws-cloudformation/0.9.81/gh-pages/default.nix.html"><i><small>Copy path to clipboard</small></i></a><br><h3>Source</h3><div class="source-code">&lt;!DOCTYPE HTML&gt;&lt;html&gt;&lt;head&gt;&lt;title&gt;/default.nix&lt;/title&gt;&lt;link rel=&quot;stylesheet&quot; type=&quot;text/css&quot; href=&quot;index.css&quot;&gt;&lt;link rel=&quot;stylesheet&quot; type=&quot;text/css&quot; href=&quot;https://fonts.googleapis.com/css2?family=Fira+Code:wght@400;500;600;700&amp;amp;family=Lato:ital,wght@0,400;0,700;1,400&amp;amp;display=swap&quot;&gt;&lt;script type=&quot;text/javascript&quot; src=&quot;index.js&quot;&gt;&lt;/script&gt;&lt;meta charset=&quot;UTF-8&quot;&gt;&lt;/head&gt;&lt;body&gt;&lt;div class=&quot;nav-bar&quot;&gt;&lt;img class=&quot;dhall-icon&quot; src=&quot;dhall-icon.svg&quot;&gt;&lt;p class=&quot;package-title&quot;&gt;dhall-aws-cloudformation&lt;/p&gt;&lt;div class=&quot;nav-bar-content-divider&quot;&gt;&lt;/div&gt;&lt;a id=&quot;switch-light-dark-mode&quot; class=&quot;nav-option&quot;&gt;Switch Light/Dark Mode&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;main-container&quot;&gt;&lt;h2 class=&quot;doc-title&quot;&gt;&lt;span class=&quot;crumb-divider&quot;&gt;/&lt;/span&gt;&lt;a href=&quot;index.html&quot;&gt;dhall-aws-cloudformation&lt;/a&gt;&lt;span class=&quot;crumb-divider&quot;&gt;/&lt;/span&gt;&lt;span class=&quot;title-crumb&quot; href=&quot;index.html&quot;&gt;default.nix&lt;/span&gt;&lt;/h2&gt;&lt;a class=&quot;copy-to-clipboard&quot; data-path=&quot;https://raw.githubusercontent.com/jcouyang/dhall-aws-cloudformation/0.9.80/default.nix&quot;&gt;&lt;i&gt;&lt;small&gt;Copy path to clipboard&lt;/small&gt;&lt;/i&gt;&lt;/a&gt;&lt;br&gt;&lt;h3&gt;Source&lt;/h3&gt;&lt;div class=&quot;source-code&quot;&gt;{ pkgs ? import ./nix/nixpkgs.nix, cf-preset ? [], sam-preset ? [], source ? false, document ? false }: with builtins; let version = &amp;quot;0.9&amp;quot;; depsToDhall = preset: pkgs.writeText &amp;quot;package.dhall&amp;quot; ( if length preset &amp;gt; 0 then &amp;#39;&amp;#39; { ${concatStringsSep &amp;quot;\n,&amp;quot; (map (a: &amp;quot;`${a}` = ./${a}.dhall&amp;quot;) preset)} } &amp;#39;&amp;#39; else &amp;quot;{=}&amp;quot; ); override = pkgs.runCommand &amp;quot;dhall-aws-cloudformation-override&amp;quot; {src = ./.;} &amp;#39;&amp;#39; mkdir -p $out cp -r $src/* $out chmod 600 $out/cloudformation/package.dhall chmod 600 $out/sam/package.dhall cp ${depsToDhall cf-preset} $out/cloudformation/package.dhall cp ${depsToDhall sam-preset} $out/sam/package.dhall &amp;#39;&amp;#39;; aws-cloudformation = {buildDhallPackage, Prelude, pkgs}: buildDhallPackage { name = &amp;quot;aws-cloudformation&amp;quot;; code = &amp;quot;${override}/package.dhall&amp;quot;; dependencies = [ Prelude ]; }; dhallOverlay = self: super: { aws-cloudformation = self.callPackage aws-cloudformation { }; }; overlay = self: super: { dhallPackages = super.dhallPackages.override (old: { overrides = self.lib.composeExtensions (old.overrides or (_: _: {})) dhallOverlay; }); }; in import pkgs.path { overlays = [ overlay ]; } &lt;/div&gt;&lt;/div&gt;&lt;/body&gt;&lt;/html&gt;</div></div></body></html>