diff options
Diffstat (limited to 'default.nix')
| -rw-r--r-- | default.nix | 66 |
1 files changed, 0 insertions, 66 deletions
diff --git a/default.nix b/default.nix deleted file mode 100644 index be25d44..0000000 --- a/default.nix +++ /dev/null @@ -1,66 +0,0 @@ -{ - pkgs ? import nixpkgs { - inherit system; - config = { }; - overlays = [ ]; - }, - nixpkgs ? <nixpkgs>, - system ? builtins.currentSystem, -}: -{ - website = pkgs.callPackage ( - { - lib, - stdenvNoCC, - writeShellApplication, - zola, - }: - stdenvNoCC.mkDerivation { - name = "getchoo-website"; - - src = lib.fileset.toSource { - root = ./.; - fileset = lib.fileset.unions [ - ./config.toml - ./content - ./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 ]; - }; - } - ) { }; -} |
