summaryrefslogtreecommitdiff
path: root/nix
diff options
context:
space:
mode:
Diffstat (limited to 'nix')
-rw-r--r--nix/package.nix53
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