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 |
qbit | ok, ty :D | 15:16:03 |
5 Jul 2021 |
| Jassuko joined the room. | 14:30:12 |
| spacesbot - keeps a log of public NixOS channels joined the room. | 19:21:50 |
| spacesbot - keeps a log of public NixOS channels | 19:49:29 |
6 Jul 2021 |
| spacesbot - keeps a log of public NixOS channels changed their display name from spacesbot to spacesbot - keeps a log of public NixOS channels. | 22:11:39 |
12 Jul 2021 |
sterni | John Ericson: useLLVM compiler-rt is missing crtbeginT.o it seems, my guess currently is that when useLLVM was implemented, it wasn't added to the crtbegin-and-end.patch just because it wasn't needed at the time. do you think that guess checks out? | 00:07:39 |
John Ericson | sterni (he/him) yeah seems plausible | 04:33:26 |
16 Jul 2021 |
| alice joined the room. | 08:41:57 |