about/flake.nix
2024-11-09 22:25:45 +01:00

25 lines
575 B
Nix

{
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
];
} ''
comrak --smart --output $out $src
'';
});
};
}