Commit Graph

19 Commits

Author SHA1 Message Date
Konstantin Shabanov
7992e91522 nix: Fix stripping
Reduces prefix size from 7.6G to 3.1G.
2026-11-02 14:30:35 +07:00
radex
08e45bc160
nix: make qemu for all architectures available 2026-10-04 20:58:03 +02:00
Konstantin Shabanov
fdab0202b9 nix: native: Downgrade file
Use the same version as in debian.
Fixes libmagic building:

Cannot use the installed version of file (5.48) to
cross-compile file 5.46
Please install file 5.46 locally first
2026-08-02 16:44:58 +07:00
Konstantin Shabanov
b5f09fe485 nix: native: Add relibc deps
Fixes relibc building:

warning: relibc@0.2.5:
/mnt/redox/prefix/x86_64-unknown-redox/gcc-freestanding-install/bin/ \
../libexec/gcc/x86_64-unknown-redox/13.2.0/cc1: error while loading \
shared libraries:  libmpc.so.3: cannot open shared object file: No \
such file or directory
error: failed to run custom build command for `relibc v0.2.5 \
(/mnt/redox/recipes/core/relibc/source)`
2026-07-30 22:29:48 +07:00
Konstantin Shabanov
ba9d0402cb nix: native: Disable format-security hardening
Fixes the error:

error: format not a string literal and no format arguments [-Werror=format-security]
318 |           fprintf (f, prefix);
2026-07-30 22:29:48 +07:00
Konstantin Shabanov
d8dd2727be nix: native: Downgrade gcc to 14
Use the same version as in trixie for consistency.
Also, fixes libgmp compilation:

checking compiler gcc -O2 -pedantic -fomit-frame-pointer  -I/mnt/redox/recipes/libs/libgmp/target/x86_64-unknown-linux-gnu/x86_64-unknown-redox/sysroot/include... no, long long reliability test 1
configure: error: could not find a working compiler, see config.log for details
redoxer env: exit status: 1
cook host:libgmp - failed
2026-07-30 22:24:41 +07:00
Konstantin Shabanov
7dc3106ff2 nix: Disable binary prefix in the native devShell
As per doc [1]:
> The prebuilt prefix is only suitable for use inside Podman

[1]: https://doc.redox-os.org/book/advanced-build.html#prebuilt-prefix
2026-07-27 11:58:25 +00:00
Konstantin Shabanov
ce274844fd nix: Drop flake-parts 2026-07-24 09:00:22 +00:00
Konstantin Shabanov
d48b58a9a2 nix: Get Rust version from rust-toolchain 2026-07-24 08:59:22 +00:00
Konstantin Shabanov
3bf4290802 nix: Update flake inputs
- Rename perl packages
- Renape X11 deps
2026-07-24 08:59:22 +00:00
Konstantin Shabanov
779d507d5a nix: Drop dead code 2026-07-24 08:59:12 +00:00
Konstantin Shabanov
d1e037c77b nix: Set SKIP_CHECK_TOOLS in native devShell
Fixes:

mk/depends.mk:11: *** rustup not found, <..>.  Stop.

Introduced in 45b03a18.
2026-07-21 12:53:05 +07:00
Konstantin Shabanov
1be710d1d3 nix: Set PODMAN_BUILD in the default devShell
Otherwise, the value from the .config is used where it may be disabled
what leads to the following error:

$ nix develop -c make all
Redox podman build environment loaded
env -u RUSTUP_TOOLCHAIN -u CC -u TARGET cargo build --manifest-path Cargo.toml --release --locked
make: *** [mk/fstools.mk:47: build/fstools.tag] Error 127
2026-07-20 20:03:19 +07:00
Wildan M
45b03a18aa
Fix fetch-changed prefix, use rustinstall.sh for img 2026-07-14 20:50:10 +07:00
Jeremy Soller
a42a64e37a Support nightly 2026-05-24 2026-05-26 07:19:36 -06:00
Wildan M
63694cf409
Update flake nix 2025-11-25 06:27:53 -08:00
zinzaguras
598c3be079 Added shell for native build using Nix
Make flake-parts to do the boilerplate logic regading to systems
and added new devShell witch isn't relying on podman infrastructure.
2025-05-12 23:05:35 +00:00
Vincent Berthier
5d384e3aa6
Cleanup flake.nix for wider compatibility 2025-02-19 22:34:14 +01:00
Vincent Berthier
4573edcc16 Add shell and build environment for NixOS 2025-02-18 22:23:42 +00:00