diff options
| author | seth <[email protected]> | 2024-07-05 18:26:55 -0400 |
|---|---|---|
| committer | seth <[email protected]> | 2024-08-23 08:30:48 -0400 |
| commit | 67fba5edad38f8a4651a6a782c7abdc696a464ff (patch) | |
| tree | 1b2ad1572d8938a89e096955d5a46f519a16f5fb /default.nix | |
| parent | 9135c80ee930045c889f64269735b8319896e2f4 (diff) | |
back to lume for the 1000th time
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 ]; - }; - } - ) { }; -} |
