From fd47f49a3b07e2d57ad7aabe14b8b330e4e36823 Mon Sep 17 00:00:00 2001 From: jolheiser Date: Thu, 21 Dec 2023 15:56:42 -0600 Subject: [PATCH] fix: just use x86_64-linux Signed-off-by: jolheiser --- template/flake.nix | 64 +++++++++++++++++++--------------------------- 1 file changed, 27 insertions(+), 37 deletions(-) diff --git a/template/flake.nix b/template/flake.nix index 5f5ac8a..b05b255 100644 --- a/template/flake.nix +++ b/template/flake.nix @@ -7,41 +7,31 @@ self, nixpkgs, }: let - systems = [ - "x86_64-linux" - "x86_64-darwin" - "aarch64-linux" - "aarch64-darwin" - ]; - in - builtins.map ( - system: let - pkgs = nixpkgs.legacyPackages.${system}; - in { - {{if pname}} - packages.${system}.default = pkgs.buildGoModule { - pname = {{pname}}; - version = {{version}}; - src = ./.; - vendorHash = ""; - meta = with pkgs.lib; { - description = "{{description}}"; - homepage = "{{url}}"; - maintainers = with maintainers; [jolheiser]; - mainProgram = "{{pname}}"; - }; - }; - {{end}} - {{if packages}} - devShells.${system}.default = pkgs.mkShell { - nativeBuildInputs = with pkgs; [ - {{- range $pkg := (splitList "\n" packages)}} - {{trim $pkg}} - {{- end}} - ]; - }; - {{end}} - } - ) - systems; + system = "x86_64-linux"; + pkgs = nixpkgs.legacyPackages.${system}; + in { + {{if pname}} + packages.${system}.default = pkgs.buildGoModule { + pname = "{{pname}}"; + version = "{{version}}"; + src = ./.; + vendorHash = ""; + meta = with pkgs.lib; { + description = "{{description}}"; + homepage = "{{url}}"; + maintainers = with maintainers; [jolheiser]; + mainProgram = "{{pname}}"; + }; + }; + {{end}} + {{if packages}} + devShells.${system}.default = pkgs.mkShell { + nativeBuildInputs = with pkgs; [ + {{- range $pkg := (splitList "\n" packages)}} + {{trim $pkg}} + {{- end}} + ]; + }; + {{end}} + }; }