about/flake.nix

26 lines
575 B
Nix
Raw Normal View History

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