add the stupid static site generator

This commit is contained in:
stupidcomputer 2024-11-04 02:31:48 -06:00
parent 6f2c96613b
commit 18ccd71602
2 changed files with 29 additions and 0 deletions

View File

@ -55,6 +55,7 @@
tigervnc tigervnc
(pkgs.callPackage ../../builds/archutils.nix {}) (pkgs.callPackage ../../builds/archutils.nix {})
(pkgs.callPackage ../../builds/sssg.nix {})
]; ];
services.hardware.bolt.enable = true; # thunderbolt support services.hardware.bolt.enable = true; # thunderbolt support

28
builds/sssg.nix Normal file
View File

@ -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 ]}
'';
}