Skip to content
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

Add NetBSD/FreeBSD Support #3280

Closed
0x4d6165 opened this issue Dec 19, 2019 · 19 comments · Fixed by #8887
Closed

Add NetBSD/FreeBSD Support #3280

0x4d6165 opened this issue Dec 19, 2019 · 19 comments · Fixed by #8887

Comments

@0x4d6165
Copy link

Howdy! I'd like to request nix support for NetBSD and/or FreeBSD. There's a wip port but it fails to compile on NetBSD

@zimbatm
Copy link
Member

zimbatm commented Dec 19, 2019

Do you know if Rust compiles on NetBSD already? It's a dependency of the latest Nix.

@0x4d6165
Copy link
Author

Yep!

@0x4d6165
Copy link
Author

We have a port in wip already going but the build fails:

  LD     src/libutil/libnixutil.so
/usr/pkg/lib: file not recognized: file format not recognized
gmake: *** [mk/lib.mk:104: src/libutil/libnixutil.so] Error 1
gmake: *** Waiting for unfinished jobs....

@0x4d6165
Copy link
Author

OpenBSD support would also be awesome and they're pretty similar to each other.

@zimbatm
Copy link
Member

zimbatm commented Dec 21, 2019

There are probably a lot of linux-only assumptions in the code base that need to be fixed. Hopefully another BSD developer will step in.

@0mp
Copy link
Contributor

0mp commented Mar 7, 2020

@l4nn1312, you might be interested in NixOS/nixpkgs#81459 and https://github.com/0mp/freebsd-ports-nix as well.

@stale
Copy link

stale bot commented Feb 16, 2021

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

@stale stale bot added the stale label Feb 16, 2021
@DrSensor
Copy link

DrSensor commented Mar 1, 2021

@stale stale bot removed the stale label Mar 1, 2021
@stale
Copy link

stale bot commented Aug 28, 2021

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

@stale stale bot added stale and removed stale labels Aug 28, 2021
@Ericson2314
Copy link
Member

Still working on Nixpkgs freebasd cross support which should make this easier to test.

@nrdxp
Copy link

nrdxp commented Oct 14, 2021

Is this still an issue? I was using Nix on a FreeBSD VPS about a month ago. I was just installing packages and didn't try anything fancy but it worked. Also, I installed it from the official ports repo, so it looks like it is officially support. Is there some subset of features that don't work or something, or should this be closed?

@Ericson2314
Copy link
Member

@alyssais might know the actual state.

I would see even if downstream has official ports, we should cross compile Nix to any platform we want to support at a minimum. Otherwise it will be in a state of frequent regressions. For that alone, I would keep this issue open.

@sarcasticadmin
Copy link
Member

I would see even if downstream has official ports, we should cross compile Nix to any platform we want to support at a minimum. Otherwise it will be in a state of frequent regressions. For that alone, I would keep this issue open.

Ya that was my understanding about why this remains open.

This cross compiling work can be found here and is in PR review: NixOS/nixpkgs#82131 but wanted to mention it here for anyone else who was curious.

@nixos-discourse
Copy link

This issue has been mentioned on NixOS Discourse. There might be relevant details there:

https://discourse.nixos.org/t/what-is-sandboxing-and-what-does-it-entail/15533/1

@stale
Copy link

stale bot commented Apr 16, 2022

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

@stale stale bot added the stale label Apr 16, 2022
@Ericson2314
Copy link
Member

Still important.

@stale stale bot removed the stale label Apr 16, 2022
@jgod
Copy link

jgod commented Jul 11, 2022

Would be cool

@stale stale bot added the stale label Jan 8, 2023
@Ericson2314
Copy link
Member

Ericson2314 commented Jun 29, 2023

I think that thanks to all of @alyssais's polishing that this can be closed. GIve cross compilation to those platforms a spin in 23.05!

I...thought I was on the Nixpkgs issue tracker.


Anyways, my hope is to, once #8569 is merged, add cross jobs for both platforms. They are very close to building today despite the lack of CI!

@vedranmiletic
Copy link

On going discussion https://discourse.nixos.org/t/nix-landed-in-freebsd-ports/9140

FWIW, sysutils/nix port on FreeBSD is now marked as unmaintained and broken.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

10 participants