Automatically create shortlinks for your Astro site
at main 22 lines 531 B view raw
1{ 2 inputs = { 3 nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-unstable"; 4 }; 5 6 outputs = {nixpkgs, ...}: let 7 forSystems = fn: 8 nixpkgs.lib.genAttrs [ 9 "aarch64-linux" 10 "aarch64-darwin" 11 "x86_64-darwin" 12 "x86_64-linux" 13 ] (system: fn nixpkgs.legacyPackages.${system}); 14 defaultForSystems = fn: forSystems (pkgs: {default = fn pkgs;}); 15 in { 16 devShells = defaultForSystems (pkgs: 17 with pkgs; 18 mkShell { 19 nativeBuildInputs = [nodejs pnpm]; 20 }); 21 }; 22}