{ description = "cl-yag static site generator"; inputs = { cl-nix-lite.url = "github:hraban/cl-nix-lite"; nixpkgs.url = "github:NixOS/nixpkgs/nixos-24.05"; flake-utils.url = "github:numtide/flake-utils"; }; outputs = { self, nixpkgs, cl-nix-lite, flake-utils }: flake-utils.lib.eachDefaultSystem (system: let pkgs = nixpkgs.legacyPackages.${system}.extend cl-nix-lite.overlays.default; in { packages = { ecl = with pkgs.lispPackagesLiteFor pkgs.ecl; lispDerivation { name = "thoughts"; lispSystem = "thoughts"; lispDependencies = [ asdf arrow-macros ]; src = pkgs.lib.cleanSource ./generator.lisp; meta = { license = pkgs.lib.licenses.agpl3Only; }; buildInputs = [ pkgs.ecl pkgs.git pkgs.gnumake pkgs.asdf pkgs.perl pkgs.multimarkdown # pkgs.writeShellScript "mm-sh" '' # #!/bin/sh # cat data/$2 |perl -0pe 's/\[\^(.*?)\]\:(.*?)(\n\n)/\\2\<\/span\>/gms' > $1.tmp # # perl -0pe 's/\[\^(.*?)\][^:]/\