]> Skullheadx's Git Forge - monopoly-web.git/commitdiff
add tokei
authorSkullheadx <admonty1@protonmail.com>
Wed, 20 May 2026 05:47:08 +0000 (01:47 -0400)
committerSkullheadx <admonty1@protonmail.com>
Wed, 20 May 2026 05:47:08 +0000 (01:47 -0400)
flake.nix

index 303bcacea50c2c01b00c971a32cb6831b7c34d0e..6538826832fdbdaf85878f73f96ca6418e37e656 100644 (file)
--- a/flake.nix
+++ b/flake.nix
@@ -4,57 +4,57 @@
     nixpkgs.url = "nixpkgs/nixos-unstable";
   };
 
-  outputs =
-    { self, nixpkgs }:
-    let
-      version = "0.1";
-      system = "x86_64-linux";
-      pkgs = import nixpkgs {inherit system;};
+  outputs = {
+    self,
+    nixpkgs,
+  }: let
+    version = "0.1";
+    system = "x86_64-linux";
+    pkgs = import nixpkgs {inherit system;};
 
-      go-watch = pkgs.writeScriptBin "go-watch" ''
-        #!${pkgs.stdenv.shell}
-        find . -name "*.go" | ${pkgs.entr}/bin/entr -r ${pkgs.nix}/bin/nix run
-      '';
-    in
-    {
-      packages.${system}.default = pkgs.buildGoModule {
-        pname = "monopoly-web";
-        inherit version;
-        src = ./.;
+    go-watch = pkgs.writeScriptBin "go-watch" ''
+      #!${pkgs.stdenv.shell}
+      find . -name "*.go" | ${pkgs.entr}/bin/entr -r ${pkgs.nix}/bin/nix run
+    '';
+  in {
+    packages.${system}.default = pkgs.buildGoModule {
+      pname = "monopoly-web";
+      inherit version;
+      src = ./.;
 
-        # This hash locks the dependencies of this package. It is
-        # necessary because of how Go requires network access to resolve
-        # VCS.  See https://www.tweag.io/blog/2021-03-04-gomod2nix/ for
-        # details. Normally one can build with a fake hash and rely on native Go
-        # mechanisms to tell you what the hash should be or determine what
-        # it should be "out-of-band" with other tooling (eg. gomod2nix).
-        # To begin with it is recommended to set this, but one must
-        # remember to bump this hash when your dependencies change.
-        # vendorHash = pkgs.lib.fakeHash;
+      # This hash locks the dependencies of this package. It is
+      # necessary because of how Go requires network access to resolve
+      # VCS.  See https://www.tweag.io/blog/2021-03-04-gomod2nix/ for
+      # details. Normally one can build with a fake hash and rely on native Go
+      # mechanisms to tell you what the hash should be or determine what
+      # it should be "out-of-band" with other tooling (eg. gomod2nix).
+      # To begin with it is recommended to set this, but one must
+      # remember to bump this hash when your dependencies change.
+      # vendorHash = pkgs.lib.fakeHash;
 
-        vendorHash = null; 
-      };
+      vendorHash = null;
+    };
 
-      # Add dependencies that are only needed for development
-      devShells.${system} = {
-        default = pkgs.mkShell {
-          buildInputs = with pkgs; [
-            go
-            gopls
-            gotools
-            go-tools
+    # Add dependencies that are only needed for development
+    devShells.${system} = {
+      default = pkgs.mkShell {
+        buildInputs = with pkgs; [
+          go
+          gopls
+          gotools
+          go-tools
 
-            git
-            entr
-            curl
-            go-watch
-          ];
-          shellHook = ''
-            echo "Welcome to monopoly-web backend."
-            echo "Run 'go-watch' to hot reload the go server"
-          '';
-        };
+          git
+          entr
+          curl
+          go-watch
+          tokei
+        ];
+        shellHook = ''
+          echo "Welcome to monopoly-web backend."
+          echo "Run 'go-watch' to hot reload the go server"
+        '';
       };
     };
-
+  };
 }