From 18ccd71602931e0eb80ebe1a1c6222f2b7a15f46 Mon Sep 17 00:00:00 2001 From: stupidcomputer Date: Mon, 4 Nov 2024 02:31:48 -0600 Subject: [PATCH] add the stupid static site generator --- boxes/copernicus/default.nix | 1 + builds/sssg.nix | 28 ++++++++++++++++++++++++++++ 2 files changed, 29 insertions(+) create mode 100644 builds/sssg.nix diff --git a/boxes/copernicus/default.nix b/boxes/copernicus/default.nix index 2eac6bd..ab05165 100644 --- a/boxes/copernicus/default.nix +++ b/boxes/copernicus/default.nix @@ -55,6 +55,7 @@ tigervnc (pkgs.callPackage ../../builds/archutils.nix {}) + (pkgs.callPackage ../../builds/sssg.nix {}) ]; services.hardware.bolt.enable = true; # thunderbolt support diff --git a/builds/sssg.nix b/builds/sssg.nix new file mode 100644 index 0000000..c9ac3f6 --- /dev/null +++ b/builds/sssg.nix @@ -0,0 +1,28 @@ +{ stdenv +, lib +, pkgs +, fetchgit +, makeWrapper +, bash +, pandoc +}: + +stdenv.mkDerivation rec { + pname = "sssg"; + version = "1.00"; + + src = fetchgit { + url = "https://git.beepboop.systems/stupidcomputer/sssg"; + hash = "sha256-b0lbHsu628CKPNC6HDLApZQ4HsinTrXCoFqr1KdVIYE="; + }; + + nativeBuildInputs = [ makeWrapper ]; + buildInputs = [ bash pandoc ]; + + installPhase = '' + mkdir -p $out/bin + + cp $src/sssg.sh $out/bin/sssg + wrapProgram $out/bin/sssg --prefix PATH : ${lib.makeBinPath [ bash pandoc ]} + ''; +}