From 25006ece6178292dfbaa485bc480b89ab9e8f059 Mon Sep 17 00:00:00 2001 From: Alexander Foremny Date: Tue, 13 Feb 2024 05:10:58 +0100 Subject: init --- .envrc | 1 + README.md | 7 +++++++ default.nix | 2 ++ nomath-org.nix | 13 +++++++++++++ shell.nix | 9 +++++++++ src/index.html | 49 +++++++++++++++++++++++++++++++++++++++++++++++++ 6 files changed, 81 insertions(+) create mode 100644 .envrc create mode 100644 README.md create mode 100644 default.nix create mode 100644 nomath-org.nix create mode 100644 shell.nix create mode 100644 src/index.html diff --git a/.envrc b/.envrc new file mode 100644 index 0000000..1d953f4 --- /dev/null +++ b/.envrc @@ -0,0 +1 @@ +use nix diff --git a/README.md b/README.md new file mode 100644 index 0000000..cda7b21 --- /dev/null +++ b/README.md @@ -0,0 +1,7 @@ +# nomath-website + +## develop + +```console +$ develop +``` diff --git a/default.nix b/default.nix new file mode 100644 index 0000000..5a612a8 --- /dev/null +++ b/default.nix @@ -0,0 +1,2 @@ +{ pkgs ? import { } }: +pkgs.callPackage ./nomath-org.nix { } diff --git a/nomath-org.nix b/nomath-org.nix new file mode 100644 index 0000000..805e8e5 --- /dev/null +++ b/nomath-org.nix @@ -0,0 +1,13 @@ +{ lib +, stdenv +, cm_unicode +}: +stdenv.mkDerivation { + name = "nomath-org"; + src = ./.; + installPhase = '' + mkdir -p $out + cp src/index.html $out + cp ${cm_unicode}/share/fonts/opentype/cmunvt.otf $out + ''; +} diff --git a/shell.nix b/shell.nix new file mode 100644 index 0000000..3d46a11 --- /dev/null +++ b/shell.nix @@ -0,0 +1,9 @@ +{ pkgs ? import { } }: +pkgs.mkShell { + buildInputs = [ + (pkgs.writers.writeDashBin "develop" '' + set -efu + find src | entr -rs '( cd $(nix-build --no-out-link -A nomath-website) && python -m http.server )' + '') + ]; +} diff --git a/src/index.html b/src/index.html new file mode 100644 index 0000000..0a6ca28 --- /dev/null +++ b/src/index.html @@ -0,0 +1,49 @@ + + + + nomath.org + + +

nomath.org

+ +

we are a collective of hackers. we “avoid success at all costs”.

+ +

we invite you to check out our projects!

-- cgit v1.2.3