web frontend for git repositories, written in Go git.pocka.jp/legit.git
3

Configure Feed

Select the types of activity you want to include in your feed.

Eliminate boilerplate code from Flake file

Shota FUJI (Jul 12, 2026, 8:52 PM +0900) 3ce7ca00 921f987b

+12 -13
+12 -13
flake.nix
··· 12 12 "aarch64-linux" 13 13 "aarch64-darwin" 14 14 ]; 15 - forAllSystems = nixpkgs.lib.genAttrs supportedSystems; 16 - nixpkgsFor = forAllSystems (system: import nixpkgs { inherit system; }); 15 + forAllSystems = 16 + f: 17 + nixpkgs.lib.genAttrs supportedSystems ( 18 + system: 19 + f { 20 + inherit system; 21 + pkgs = import nixpkgs { inherit system; }; 22 + } 23 + ); 17 24 in 18 25 { 19 26 packages = forAllSystems ( 20 - system: 27 + { system, pkgs }: 21 28 let 22 - pkgs = nixpkgsFor.${system}; 23 29 legit = self.packages.${system}.legit; 24 30 files = pkgs.lib.fileset.toSource { 25 31 root = ./.; ··· 60 66 ); 61 67 62 68 formatter = forAllSystems ( 63 - system: 64 - let 65 - pkgs = nixpkgsFor.${system}; 66 - in 69 + { system, pkgs }: 67 70 pkgs.buildFHSEnv { 68 71 name = "fhs-dprint"; 69 72 targetPkgs = ··· 84 87 ); 85 88 86 89 devShells = forAllSystems ( 87 - system: 88 - let 89 - pkgs = nixpkgsFor.${system}; 90 - in 91 - { 90 + { system, pkgs }: { 92 91 default = pkgs.mkShell { 93 92 nativeBuildInputs = with pkgs; [ 94 93 go