Compare commits
2 commits
f80d4b0595
...
ee669aae8e
Author | SHA1 | Date | |
---|---|---|---|
Artemis Tosini | ee669aae8e | ||
Artemis Tosini | e0532f383e |
|
@ -2,11 +2,11 @@
|
|||
"nodes": {
|
||||
"nixpkgs": {
|
||||
"locked": {
|
||||
"lastModified": 1720368505,
|
||||
"narHash": "sha256-5r0pInVo5d6Enti0YwUSQK4TebITypB42bWy5su3MrQ=",
|
||||
"lastModified": 1724395761,
|
||||
"narHash": "sha256-zRkDV/nbrnp3Y8oCADf5ETl1sDrdmAW6/bBVJ8EbIdQ=",
|
||||
"owner": "nixos",
|
||||
"repo": "nixpkgs",
|
||||
"rev": "ab82a9612aa45284d4adf69ee81871a389669a9e",
|
||||
"rev": "ae815cee91b417be55d43781eb4b73ae1ecc396c",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
|
|
|
@ -40,6 +40,8 @@
|
|||
devShells = forAllSystems (pkgs: {
|
||||
armTrustedFirmware = pkgs.callPackage ./shells/armTrustedFirmware { };
|
||||
plotter = pkgs.callPackage ./shells/plotter { };
|
||||
rust = pkgs.callPackage ./shells/rust { };
|
||||
rust9x = pkgs.callPackage ./shells/rust9x { };
|
||||
ryujinx = pkgs.callPackage ./shells/ryujinx { };
|
||||
uboot = pkgs.callPackage ./shells/uboot { };
|
||||
zephyr = pkgs.callPackage ./shells/zephyr { };
|
||||
|
|
46
shells/rust/default.nix
Normal file
46
shells/rust/default.nix
Normal file
|
@ -0,0 +1,46 @@
|
|||
{
|
||||
binutils,
|
||||
cacert,
|
||||
cmake,
|
||||
curl,
|
||||
git,
|
||||
glibc,
|
||||
lib,
|
||||
mkShell,
|
||||
ninja,
|
||||
nix,
|
||||
openssl,
|
||||
patchelf,
|
||||
pkg-config,
|
||||
python3,
|
||||
rustup,
|
||||
stdenv,
|
||||
}:
|
||||
|
||||
mkShell {
|
||||
name = "rustc-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 [
|
||||
stdenv.cc.cc.lib
|
||||
]}";
|
||||
}
|
46
shells/rust9x/default.nix
Normal file
46
shells/rust9x/default.nix
Normal 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
|
||||
]}";
|
||||
}
|
Loading…
Reference in a new issue