diff options
Diffstat (limited to 'nix')
| -rw-r--r-- | nix/package.nix | 54 |
1 files changed, 0 insertions, 54 deletions
diff --git a/nix/package.nix b/nix/package.nix deleted file mode 100644 index a875712..0000000 --- a/nix/package.nix +++ /dev/null @@ -1,54 +0,0 @@ -{ - lib, - stdenvNoCC, - writeShellApplication, - zola, -}: -stdenvNoCC.mkDerivation { - name = "getchoo-website"; - - src = lib.fileset.toSource { - root = ../.; - fileset = lib.fileset.unions [ - ../config.toml - ../content - ../highlight_themes - ../static - ../templates - ]; - }; - - nativeBuildInputs = [ zola ]; - - dontConfigure = true; - doCheck = false; - - buildPhase = '' - runHook preBuild - zola build - runHook postBuild - ''; - - installPhase = '' - runHook preInstall - mv public $out - runHook postInstall - ''; - - passthru = { - serve = writeShellApplication { - name = "serve"; - runtimeInputs = [ zola ]; - - text = '' - zola serve - ''; - }; - }; - - meta = { - homepage = "https://github.com/getchoo/website"; - license = lib.licenses.mit; - maintainers = with lib.maintainers; [ getchoo ]; - }; -} |
