{ inputs = { nixpkgs.url = "github:nixos/nixpkgs/master"; }; outputs = inputs @ { ... }: let supportedSystems = [ "x86_64-linux" "aarch64-linux" ]; forAllSystems = inputs.nixpkgs.lib.genAttrs supportedSystems; nixpkgsFor = forAllSystems (system: import inputs.nixpkgs { inherit system; overlays = [ ]; }); in { packages = forAllSystems (system: let pkgs = nixpkgsFor.${system}; in with pkgs; rec { mike-vinkies-net = stdenv.mkDerivation { name = "mike-vinkies-net"; src = ./.; buildInputs = [ pkgs.deno ]; buildPhase = '' export DENO_DIR=vendor deno --version deno task build ''; installPhase = '' mkdir -p $out/var/www cp -vrf _site $out/var/www/mike.vinkies.net ''; }; default = mike-vinkies-net; }); }; }