-
Notifications
You must be signed in to change notification settings - Fork 47
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Question: Is it possible to have nix-user-chroot target aarch64-linux ? #80
Comments
It seems as if it is possible to just build a bundle for aarch64-linux like this: #!/usr/bin/env bash
set -euo pipefail
export NIX_PATH=channel:nixos-20.09
out=$(nix-build --no-out-link --expr 'let pkgsArm = import <nixpkgs> { config = {}; overlays = []; system = "aarch64-linux"; }; pkgsCross = import <nixpkgs> { overlays = [(self: super: { inherit (pkgsArm.haskellPackages) hledger; })]; crossSystem = { config = "aarch64-unknown-linux-musl"; }; }; in pkgsCross.hledger')
./nix-bundle.sh "$out" /bin/hledger Thanks for awesome piece of software engineering ! |
Using
|
Analog with hledger:
But file -p /nix/store/j97652klcc6x96i78kw78r9ddqcbfqgk-vzqd3zpnpnzdi3yrh59yqa7l6ppd2bfi-hledger-1.19.1/bin/hledger
let's me think bundling for aarch64 just works ! I'll open up a separate ticket for the illegal instruction message. |
Sorry for the fuzz I have to reopen: Just saw
file -p /nix/store/djb6njqj31dy84jcfhli07sina2gxx37-nix-user-chroot-2c52b5f/bin/nix-user-chroot
So I tend to rename the issue "Question: Is it possible to have nix-user-chroot target aarch64-linux ?" |
Pulling https://github.com/nix-community/nix-user-chroot/releases/tag/1.2.2 could be an option. See #69 as well. |
Had the probably stupid idea to change the
expr
to:expr="with import <nixpkgs> { system=\"aarch64-linux\"; }; with import $nix_file {}; $bootstrap { target = $target; extraTargets = [ $extraTargets ]; run = \"$exec\"; }"
temporarily such that I can bundle apps for this architecture as well.
How oversimplified would that be ?
In other words is that something to achieve with nix-bundle anyway ?
The text was updated successfully, but these errors were encountered: