nixwebr.ing/flake.nix
jacekpoz 001e274186
All checks were successful
Deploy website / deploy (push) Successful in 12s
move webring data to webring.nix
2024-09-13 21:38:59 +02:00

48 lines
1.2 KiB
Nix

{
description = "the ring";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
nte = {
url = "git+https://git.jacekpoz.pl/jacekpoz/nte";
inputs.nixpkgs.follows = "nixpkgs";
};
systems.url = "github:nix-systems/default";
};
outputs = { nixpkgs, nte, self, systems, ... }: let
forEachSystem = nixpkgs.lib.genAttrs (import systems);
pkgsForEach = nixpkgs.legacyPackages;
webringMembers = import ./webring.nix;
in {
packages = forEachSystem (
system: let
pkgs = pkgsForEach.${system};
in {
site = import ./site/default.nix {
inherit pkgs webringMembers;
inherit (pkgs) jetbrains-mono lib writeText;
inherit (nte.functions.${system}) mkNteDerivation;
};
server = import ./server/default.nix {
inherit pkgs;
inherit (pkgs) rustPlatform;
};
}
);
devShells = forEachSystem (
system: let
pkgs = pkgsForEach.${system};
shell = pkgs.mkShell {
name = "nixwebr.ing";
inputsFrom = [ self.packages.${system}.server ];
};
in {
"nixwebr.ing" = shell;
default = shell;
}
);
};
}