diff options
| author | seth <[email protected]> | 2024-10-08 11:49:47 -0400 |
|---|---|---|
| committer | GitHub <[email protected]> | 2024-10-08 11:49:47 -0400 |
| commit | 20d62336a446bea6c5846805e8325b67cd59fe54 (patch) | |
| tree | 46a92b1de1021eb0631b54f664ba0c2ddf6752c6 /nix | |
| parent | 07cb04200916169671b9c426fbfe9a24bb0fa79e (diff) | |
nice redesign (#145)
* nix: drop treefmt
* nix: remove .envrc
* nix: move `serve` to apps output
* nice redesign
* use local stylesheet
* nix: fix build
Diffstat (limited to 'nix')
| -rw-r--r-- | nix/package.nix | 53 |
1 files changed, 0 insertions, 53 deletions
diff --git a/nix/package.nix b/nix/package.nix deleted file mode 100644 index e73ca90..0000000 --- a/nix/package.nix +++ /dev/null @@ -1,53 +0,0 @@ -{ - lib, - stdenvNoCC, - writeShellApplication, - miniserve, - zola, - - nix-filter, - self, -}: - -let - website = stdenvNoCC.mkDerivation { - pname = "getchoo-website"; - version = self.shortRev or self.dirtyShortRev or "unknown"; - - src = nix-filter.lib { - root = self; - include = [ - "config.toml" - "content" - "static" - "templates" - ]; - }; - - nativeBuildInputs = [ zola ]; - - dontConfigure = true; - dontFixup = true; - - buildPhase = "zola build"; - installPhase = "mv public $out"; - - passthru = { - serve = writeShellApplication { - name = "serve"; - runtimeInputs = [ miniserve ]; - - text = '' - miniserve ${website}/ - ''; - }; - }; - - meta = { - homepage = "https://github.com/getchoo/website"; - license = lib.licenses.mit; - maintainers = with lib.maintainers; [ getchoo ]; - }; - }; -in -website |
