mirror of
https://github.com/NVIDIA/OpenShell.git
synced 2026-10-30 07:33:59 +08:00
* feat(nix): add glibc 2.28 development shell * feat(nix): add musl development shell * feat(build): use mold in musl development shell * feat(flake): add nix remote cache * feat(build): use mold in default development shell
28 lines
746 B
Nix
28 lines
746 B
Nix
# SPDX-FileCopyrightText: Copyright (c) 2025-2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
{
|
|
pkgs,
|
|
rust-overlay,
|
|
commonDevShellPackages,
|
|
}:
|
|
|
|
let
|
|
muslPkgs = pkgs.pkgsMusl;
|
|
stdenv = pkgs.stdenvAdapters.useMoldLinker muslPkgs.stdenv;
|
|
rust-bin = rust-overlay.lib.mkRustBin { } muslPkgs;
|
|
rustToolchain = (rust-bin.fromRustupToolchainFile ../../rust-toolchain.toml).override {
|
|
enableLibsecret = false;
|
|
};
|
|
in
|
|
(muslPkgs.mkShell.override { inherit stdenv; }) {
|
|
packages = [
|
|
rustToolchain
|
|
(muslPkgs.callPackage ../pkgs/z3-static.nix { })
|
|
(muslPkgs.callPackage ../pkgs/aws-lc-static.nix {
|
|
rust-bindgen = pkgs.rust-bindgen;
|
|
})
|
|
]
|
|
++ commonDevShellPackages;
|
|
}
|