{ inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable"; inputs.theme_anemone = { url = "github:Speyll/anemone"; flake = false; }; outputs = { self, nixpkgs, theme_anemone, }: let supportedSystems = ["x86_64-linux" "aarch64-linux"]; forAllSystems = nixpkgs.lib.genAttrs supportedSystems; pkgs = forAllSystems (system: nixpkgs.legacyPackages.${system}); url = "https://project-cloud.net"; name = "project-cloud"; theme = theme_anemone; in { packages = forAllSystems (system: { default = pkgs.${system}.stdenv.mkDerivation { inherit name; nativeBuildInputs = with pkgs.${system}; [zola]; src = ./.; submodules = true; buildPhase = '' ls ${theme}/ ln -s ${theme} themes/anemone zola build -u ${url} ''; installPhase = '' mkdir $out cp -r public/ $out/ ''; }; }); devShells = forAllSystems (system: { default = pkgs.${system}.mkShellNoCC { packages = with pkgs.${system}; [zola]; }; }); }; }