2024-11-09 20:12:27 +01:00
|
|
|
{
|
|
|
|
description = "florp.social/about";
|
|
|
|
|
|
|
|
inputs = {
|
|
|
|
nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-unstable";
|
|
|
|
};
|
|
|
|
|
|
|
|
outputs = { self, nixpkgs }: let
|
|
|
|
inherit (nixpkgs) lib;
|
|
|
|
eachSystem = lib.genAttrs [ "x86_64-linux" "aarch64-linux" ];
|
|
|
|
in {
|
|
|
|
packages = eachSystem (system: let
|
|
|
|
pkgs = nixpkgs.legacyPackages.${system};
|
|
|
|
in {
|
|
|
|
default = pkgs.runCommandNoCC "about.html" {
|
|
|
|
src = ./about.md;
|
|
|
|
nativeBuildInputs = with pkgs; [
|
|
|
|
comrak
|
|
|
|
];
|
|
|
|
} ''
|
2024-11-09 21:25:05 +01:00
|
|
|
comrak --smart --unsafe --output $out $src
|
2024-11-09 20:12:27 +01:00
|
|
|
'';
|
|
|
|
});
|
|
|
|
};
|
|
|
|
}
|