diff options
| author | seth <[email protected]> | 2024-08-23 08:44:19 -0400 |
|---|---|---|
| committer | seth <[email protected]> | 2024-10-02 06:52:12 -0400 |
| commit | bd46bfd1728b513a09193e916c73acae37a7b846 (patch) | |
| tree | f4b62602a2845d992d3f028c39d8ea449c787820 /default.nix | |
| parent | 4ea69fd2e3a84bb6db88ead2d2ac5fd4bde13a11 (diff) | |
nix: simplify flake
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 ]; - }; - } - ) { }; -} |
