From 4a37c8d2a2e5332959bb2679bf2a2ceed3b372d8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Charlotte=20=F0=9F=A6=9D=20Delenk?= Date: Sun, 6 Mar 2022 08:17:14 +0100 Subject: [PATCH] =?UTF-8?q?drop=20darwin=20targets=20bc=20I=20can=E2=80=99?= =?UTF-8?q?t=20build=20them?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- flake.nix | 47 ++++++++++++++++++++++++++--------------------- 1 file changed, 26 insertions(+), 21 deletions(-) diff --git a/flake.nix b/flake.nix index fd120a2..8932d05 100644 --- a/flake.nix +++ b/flake.nix @@ -13,26 +13,31 @@ cargo2nix.inputs.flake-utils.follows = "flake-utils"; }; - outputs = { self, nixpkgs, flake-utils, rust-overlay, cargo2nix, ... } @ args: flake-utils.lib.eachDefaultSystem (system: - let - overlays = [ cargo2nix.overlay ]; - pkgs = import nixpkgs { - inherit system overlays; - }; - git-mit = pkgs.rustBuilder.makePackageSet' { - packageFun = import ./git-mit/Cargo.nix; - workspaceSrc = pkgs.fetchFromGitHub { - owner = "PurpleBooth"; - repo = "git-mit"; - rev = "0aa22b8e2baafc392c9b6d7a01cc1806f09e2194"; - sha256 = "059hkl0xm818ahr829g8f2hn8c4x2ilhbbq6v21ycf9r3hyj65ld"; + outputs = { self, nixpkgs, flake-utils, rust-overlay, cargo2nix, ... } @ args: flake-utils.lib.eachSystem [ + "x86_64-linux" + "aarch64-linux" + "i686-linux" + ] + (system: + let + overlays = [ cargo2nix.overlay ]; + pkgs = import nixpkgs { + inherit system overlays; }; - packageOverrides = pkgs: pkgs.rustBuilder.overrides.all; - rustChannel = "1.59.0"; - }; - in - rec { - packages = builtins.mapAttrs (_: f: (f { }).bin) git-mit.workspace; - hydraJobs = packages; - }); + git-mit = pkgs.rustBuilder.makePackageSet' { + packageFun = import ./git-mit/Cargo.nix; + workspaceSrc = pkgs.fetchFromGitHub { + owner = "PurpleBooth"; + repo = "git-mit"; + rev = "0aa22b8e2baafc392c9b6d7a01cc1806f09e2194"; + sha256 = "059hkl0xm818ahr829g8f2hn8c4x2ilhbbq6v21ycf9r3hyj65ld"; + }; + packageOverrides = pkgs: pkgs.rustBuilder.overrides.all; + rustChannel = "1.59.0"; + }; + in + rec { + packages = builtins.mapAttrs (_: f: (f { }).bin) git-mit.workspace; + hydraJobs = packages; + }); }