From 7ae109eaaea83a38d5f1d4537cd58e7ad84b718c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20DOUIN?= Date: Mon, 25 Nov 2024 00:18:13 +0100 Subject: [PATCH] try pkgsStatic --- .github/workflows/pre-release.yml | 25 +++++++++++++++++++++++++ default.nix | 9 ++++----- 2 files changed, 29 insertions(+), 5 deletions(-) diff --git a/.github/workflows/pre-release.yml b/.github/workflows/pre-release.yml index 7c2cedfb..a8fafb7f 100644 --- a/.github/workflows/pre-release.yml +++ b/.github/workflows/pre-release.yml @@ -13,6 +13,31 @@ jobs: - system: aarch64-macos target: aarch64-apple-darwin os: macos-14 + - system: aarch64-linux + target: aarch64-unknown-linux-musl + os: ubuntu-latest + - system: armv6l-linux + target: armv6l-unknown-linux-musleabihf + os: ubuntu-latest + - system: armv7l-linux + target: armv7l-unknown-linux-musleabihf + os: ubuntu-latest + - system: i686-linux + target: i686-unknown-linux-musl + os: ubuntu-latest + # FIXME + # - system: i686-windows + # target: i686-w64-mingw32 + # os: ubuntu-latest + - system: x86_64-macos + target: x86_64-apple-darwin + os: macos-13 + - system: x86_64-linux + target: x86_64-unknown-linux-musl + os: ubuntu-latest + - system: x86_64-windows + target: x86_64-w64-mingw32 + os: ubuntu-latest steps: - name: Checkout code uses: actions/checkout@v4 diff --git a/default.nix b/default.nix index 0c5620b7..b51508ab 100644 --- a/default.nix +++ b/default.nix @@ -9,7 +9,6 @@ let pkgs = import { crossSystem = { - inherit isStatic; config = target; }; }; @@ -25,7 +24,7 @@ let targetSystem = rustTarget; }; - rustPlatform = pkgs.makeRustPlatform { + rustPlatform = pkgs.pkgsStatic.makeRustPlatform { rustc = rustToolchain; cargo = rustToolchain; }; @@ -37,13 +36,13 @@ let himalaya = import ./package.nix { inherit lib hostPlatform rustPlatform; fetchFromGitHub = pkgs.fetchFromGitHub; - stdenv = pkgs.stdenv; + stdenv = pkgs.pkgsStatic.stdenv; darwin = pkgs.darwin; installShellFiles = false; installShellCompletions = false; installManPages = false; - notmuch = pkgs.notmuch; - gpgme = pkgs.gpgme; + notmuch = pkgs.pkgsStatic.notmuch; + gpgme = pkgs.pkgsStatic.gpgme; buildNoDefaultFeatures = !defaultFeatures; buildFeatures = lib.strings.splitString "," features; };