Compare commits

..

2 commits

Author SHA1 Message Date
Artemis Tosini ee669aae8e
shells/rust{,9x}: init 2024-08-27 20:01:40 +00:00
Artemis Tosini e0532f383e
flake.lock: Update
Flake lock file updates:

• Updated input 'nixpkgs':
    'github:nixos/nixpkgs/ab82a9612aa45284d4adf69ee81871a389669a9e' (2024-07-07)
  → 'github:nixos/nixpkgs/ae815cee91b417be55d43781eb4b73ae1ecc396c' (2024-08-23)
2024-08-27 20:01:19 +00:00
3 changed files with 81 additions and 8 deletions

View file

@ -41,6 +41,7 @@
armTrustedFirmware = pkgs.callPackage ./shells/armTrustedFirmware { }; armTrustedFirmware = pkgs.callPackage ./shells/armTrustedFirmware { };
plotter = pkgs.callPackage ./shells/plotter { }; plotter = pkgs.callPackage ./shells/plotter { };
rust = pkgs.callPackage ./shells/rust { }; rust = pkgs.callPackage ./shells/rust { };
rust9x = pkgs.callPackage ./shells/rust9x { };
ryujinx = pkgs.callPackage ./shells/ryujinx { }; ryujinx = pkgs.callPackage ./shells/ryujinx { };
uboot = pkgs.callPackage ./shells/uboot { }; uboot = pkgs.callPackage ./shells/uboot { };
zephyr = pkgs.callPackage ./shells/zephyr { }; zephyr = pkgs.callPackage ./shells/zephyr { };

View file

@ -1,20 +1,46 @@
{ {
mkShell, binutils,
python3, cacert,
pkg-config,
cmake, cmake,
ninja,
curl, curl,
git,
glibc,
lib,
mkShell,
ninja,
nix,
openssl,
patchelf, patchelf,
pkg-config,
python3,
rustup,
stdenv,
}: }:
mkShell { mkShell {
packages = [ name = "rustc-dev";
python3 nativeBuildInputs = [
pkg-config binutils
cacert
cmake cmake
ninja
curl curl
git
ninja
nix
patchelf patchelf
pkg-config
python3
rustup
]; ];
buildInputs = [
glibc.out
glibc.static
openssl
];
# Avoid creating text files for ICEs.
RUSTC_ICE = "0";
# Provide `libstdc++.so.6` for the self-contained lld.
LD_LIBRARY_PATH = "${lib.makeLibraryPath [
stdenv.cc.cc.lib
]}";
} }

46
shells/rust9x/default.nix Normal file
View file

@ -0,0 +1,46 @@
{
binutils,
cacert,
cmake,
curl,
git,
glibc,
lib,
mkShell,
ninja,
nix,
openssl,
patchelf,
pkg-config,
python3,
rustup,
clangStdenv,
}:
(mkShell.override { stdenv = clangStdenv; }) {
name = "rustc-win9x-dev";
nativeBuildInputs = [
binutils
cacert
cmake
curl
git
ninja
nix
patchelf
pkg-config
python3
rustup
];
buildInputs = [
glibc.out
glibc.static
openssl
];
# Avoid creating text files for ICEs.
RUSTC_ICE = "0";
# Provide `libstdc++.so.6` for the self-contained lld.
LD_LIBRARY_PATH = "${lib.makeLibraryPath [
clangStdenv.cc.cc.lib
]}";
}