!pbdtvoHxUGLhcEvnlu:nixos.org

Exotic Nix Targets

332 Members
102 Servers

You have reached the beginning of time (for this room).


SenderMessageTime
13 Jan 2024
@samueldr:matrix.org@samueldr:matrix.org(ever heard of BTRON and B-right/V?)23:19:47
@raitobezarius:matrix.orgraitobezarius(never)23:19:50
@samueldr:matrix.org@samueldr:matrix.org(it's fascinating)23:19:59
@raitobezarius:matrix.orgraitobezariusI think we have this switch case23:20:09
@raitobezarius:matrix.orgraitobezarius
      libc =
        /**/ if final.isDarwin              then "libSystem"
        else if final.isMinGW               then "msvcrt"
        else if final.isWasi                then "wasilibc"
        else if final.isRedox               then "relibc"
        else if final.isMusl                then "musl"
        else if final.isUClibc              then "uclibc"
        else if final.isAndroid             then "bionic"
        else if final.isLinux /* default */ then "glibc"
        else if final.isFreeBSD             then "fblibc"
        else if final.isNetBSD              then "nblibc"
        else if final.isAvr                 then "avrlibc"
        else if final.isGhcjs               then null
        else if final.isNone                then "newlib"
        # TODO(@Ericson2314) think more about other operating systems
        else                                     "native/impure";

23:20:11
@samueldr:matrix.org@samueldr:matrix.orgyes23:20:16
@samueldr:matrix.org@samueldr:matrix.orgwith carefulling in an overlay this can be overriden outside of Nixpkgs23:20:27
@raitobezarius:matrix.orgraitobezariushmm; so what is the problem with the libc precisely?23:20:47
@samueldr:matrix.org@samueldr:matrix.org
libcCrossChooser =
  name:
  #if name == "3bv" then final.targetPackages.bvgsdk_libc or final.bvgsdk_libc
  if name == "3bv" then final.buildPackages.bvgsdk_libc or final.buildPackages.bvgsdk_libc
  else super.libcCrossChooser name
;
23:20:57
@raitobezarius:matrix.orgraitobezariuslike you want to be able to have a meaningful overlay of nixpkgs with your libc?23:20:58
@raitobezarius:matrix.orgraitobezariushm right the cross chooser23:21:14
@samueldr:matrix.org@samueldr:matrix.org
In reply to @samueldr:matrix.org
so uh, I have a weird exotic thing I might need some hints or help, and there's enough gaps in my knowledge of cross in general that I'm not even sure where to start from (the trivial attempts failed for different reasons at different stages)
I'm not exactly sure what even makes sense here
23:21:21
@samueldr:matrix.org@samueldr:matrix.orgoh, there's also that libc one, didn't catch on the diff23:21:45
@raitobezarius:matrix.orgraitobezariusyeah there's a whole machinery to slowly transform your thing into final packages and stdenvs23:22:10
@raitobezarius:matrix.orgraitobezariusI don't think you can overlay the lib/systems ones though23:22:23
@raitobezarius:matrix.orgraitobezariusI'm still not sure what to advise as I'm not sure what is your intent, if you don't want to bother nixpkgs with this platform… is your optimal goal to have an overlay somewhere where you can build things with it?23:22:58
@samueldr:matrix.org@samueldr:matrix.orgwhatever mechanism to achieve my goal (editing Nixpkgs or not) is okay23:25:01
@samueldr:matrix.org@samueldr:matrix.orgI want to better understand the non-trivial cross-compilation23:25:13
@samueldr:matrix.org@samueldr:matrix.org a precise goal would be to have an "hello" world C program cross-compiled through as much of stdenv.mkDerivation as feasible 23:26:37
@samueldr:matrix.org@samueldr:matrix.org(the GNU one most likely can't)23:26:49
14 Jan 2024
@samueldr:matrix.org@samueldr:matrix.org oh, right, another thing I don't know what to do about: the quatuplet for config, since the (admiteddly old) SDK and all the few remnants of info only specify a triplet 00:24:41
@raitobezarius:matrix.orgraitobezarius(going to sleep for now but I have some ideas)03:52:06

Show newer messages


Back to Room ListRoom Version: 6