xrsh-buildroot/nix
Leon van Kammen a268f2730f nix files update + docs update 2025-02-18 16:09:27 +01:00
..
README.md nix files update + docs update 2025-02-18 16:09:27 +01:00
build_hello_c.sh update nix/README.md 2025-02-17 12:28:15 +01:00
build_nixpkg.sh nix files update + docs update 2025-02-18 16:09:27 +01:00
hello upgraded to latest buildroot + added fusescript 2024-12-11 18:23:05 +01:00
hello.c main: work in progress [might break] 2024-09-16 11:25:26 +00:00
hello.nix nix files update + docs update 2025-02-18 16:09:27 +01:00

README.md

Nix-compiled binaries for xrsh.iso

Crosscompiling used to be tricky, due to dependencies. With Nix this belongs to the past.

building hello.c

$ nix-shell --run '$CC hello.c -o hello' hello.nix
$ file hello 
hello: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), statically linked, not stripped

building a nixos pkg

$ nix-build '<nixpkgs>' --pure -I nixpkgs=channel:nixos-24.05 -A pkgsCross.musl32.pkgsStatic.hello
$ file hello
hello: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), statically linked, not stripped

use the build-shellscripts in this directory as a startingpoint for your xrsh binaries.