NixOS / nixpkgs

Nix Packages collection & NixOS
MIT License
17.87k stars 13.94k forks source link

Cannot cross-build Haskell-SDL for Android #56120

Open nomeata opened 5 years ago

nomeata commented 5 years ago

Issue description

I’d like to use nix to develop a SDL-based Haskell app for Android, but I can’t cross-compile the Haskell SDL library.

Steps to reproduce

~/build/nixpkgs $ nix-build -A pkgsCross.aarch64-android-prebuilt.haskellPackages.SDL
error: attribute 'dev' missing, at /home/jojo/build/nixpkgs/pkgs/os-specific/linux/apparmor/default.nix:87:106
(use '--show-trace' to show detailed location information)

Technical details

Please run nix-shell -p nix-info --run "nix-info -m" and paste the results.

 - system: `"x86_64-linux"`
 - host os: `Linux 4.19.0-2-amd64, Debian GNU/Linux, noversion`
 - multi-user?: `yes`
 - sandbox: `no`
 - version: `nix-env (Nix) 2.0.4`
find: '/nix/var/nix/profiles/per-user': No such file or directory

This was originally reported as https://github.com/reflex-frp/reflex-platform/issues/454.

matthewbauer commented 5 years ago

Can you try this branch: https://github.com/NixOS/nixpkgs/pull/56197

It should have SDL support but I haven't actually tried it out yet.

nomeata commented 5 years ago

Tried your branch, but got stuck at libiconv

nomeata commented 5 years ago

Ok, #56197 got merged (to staging) so I am no longer stuck with libiconv, but at libgmp. This is of course independent of SDL, so I reported it separately at #56493, which this issue is now blocked on.

stale[bot] commented 4 years ago

Thank you for your contributions.

This has been automatically marked as stale because it has had no activity for 180 days.

If this is still important to you, we ask that you leave a comment below. Your comment can be as simple as "still important to me". This lets people see that at least one person still cares about this. Someone will have to do this at most twice a year if there is no other activity.

Here are suggestions that might help resolve this more quickly:

  1. Search for maintainers and people that previously touched the related code and @ mention them in a comment.
  2. Ask on the NixOS Discourse.
  3. Ask on the #nixos channel on irc.freenode.net.
nomeata commented 4 years ago

I still kinda hope to be able to do that some day

stale[bot] commented 3 years ago

I marked this as stale due to inactivity. → More info