| 16 Jun 2021 |
Alyssa Ross | yeah | 22:28:07 |
Alyssa Ross | although I'd hope that particular example isn't that common? | 22:28:19 |
sterni | Alyssa Ross: probably not, but some haskellPackages have some C bits called via FFI which would make this necessary | 22:29:23 |
sterni | and just disabling darwin for those kind of feels stupid, for example | 22:29:36 |
Alyssa Ross | why are those C bits libc specific? | 22:30:35 |
sterni | I saw some header stuff going wrong, usage of _r which doesn't seem to exist in libsystem | 22:32:19 |
sterni | I suppose the kind of stuff which probably would still work with musl | 22:32:29 |
| 17 Jun 2021 |
Alyssa Ross | ahh, right | 08:40:17 |
| 24 Jun 2021 |
qbit | I have started creating https://github.com/NixOS/nixpkgs/tree/master/pkgs/os-specific/bsd/netbsd for openbsd (basically a copy of netbsd with a few tweaks atm) to generate the hashes, does one use nix-prefetch-url? (it isn't clear from the man page if it supports cvs :D) | 13:33:56 |
qbit |
- hashes used https://github.com/NixOS/nixpkgs/blob/master/pkgs/os-specific/bsd/netbsd/default.nix#L115
| 13:34:26 |
qbit | * the hashes found here https://github.com/NixOS/nixpkgs/blob/master/pkgs/os-specific/bsd/netbsd/default.nix#L115 | 13:34:42 |
sterni | just use a fake hash and wait for the fetch to fail is what I do usually | 15:56:39 |
sterni | the cvs fetcher is quite simplistic and I don't think it has the prefetch feature | 15:57:03 |
qbit | heh, ok | 15:58:02 |
qbit | that's what i have been doing for other things ;D | 15:58:13 |
| 26 Jun 2021 |
| @grahamc:nixos.org invited NixOS Moderation Bot. | 01:18:00 |
| NixOS Moderation Bot joined the room. | 01:18:01 |
| @grahamc:nixos.orgchanged room power levels. | 01:18:02 |
| 28 Jun 2021 |
| dash joined the room. | 01:24:52 |
| 29 Jun 2021 |
qbit | next noob question :D - after creating a nixpkgs/pkgs/os-specific/bsd/openbsd/defalut.nix (obvs not complete) - is there a nix-build incantation I can fire off to test it? | 14:00:43 |
sterni | you need to callPackage it in pkgs/top-level/all-packages.nix, search for "netbsd =" for an example on how to do it | 14:01:47 |
qbit | ok | 14:45:23 |
qbit | not sure how i would build the derivation though - i assume I can build just the openbsd bits, right? (i also still need to get the hashes sorted out) | 14:46:23 |
qbit | also should mention - I have no idea what the workflow should look like :D | 14:53:07 |
sterni | nix-build -A openbsd.package | 15:09:24 |
sterni | for native | 15:09:44 |
sterni | cross compilation is of course more involved, you need to create a platform which picks up your natively compiled bits needed for bootstraping from openbsd and then builds a stdenv which can cross compile openbsd stuff | 15:10:32 |
sterni | it's hard to explain it all via matrix, I'd suggest you orient yourself on how the netbsd package set is doing it | 15:11:16 |
qbit | mk | 15:11:30 |
sterni | platform definitions are in lib/platforms/examples.nix and the cross stdenv implementation in pkgs/stdenv/cross | 15:11:34 |