!kyXJonZuBXCGzVwuSn:nixos.org

Systems Programming

291 Members
Kernel, stdenv, low-level hacking, patchelf, … 73 Servers

Load older messages


SenderMessageTime
22 Dec 2021
@fzakaria:matrix.orgfzakaria (Old)Is there any good documentation on overriding stdenv to work with musl instead ?14:04:00
@fzakaria:matrix.orgfzakaria (Old)(dont see any in the nixpkg docs)14:04:08
@mic92:nixos.devMic92 fzakaria: why not. There is pkgsMusl that you can use 14:04:14
@fzakaria:matrix.orgfzakaria (Old)ah that's a whole package set... so it would use that instead14:04:55
@mic92:nixos.devMic92pkgsMusl.callPackage might already do the trick14:05:14
@mic92:nixos.devMic92I would keep the docker setup for now though, if we can test it with flakes, than we are probably fine. And than we know patchelf also works on other distros14:05:54
@fzakaria:matrix.orgfzakaria (Old)i'll investigate that -- what about the nix-shell though that would need its own attr ?14:05:57
@fzakaria:matrix.orgfzakaria (Old)rgr14:06:05
@mic92:nixos.devMic92
In reply to @fzakaria:matrix.org
i'll investigate that -- what about the nix-shell though that would need its own attr ?
Are you talking about nix develop?
14:06:31
@fzakaria:matrix.orgfzakaria (Old)(I still use the old stuff lol)14:06:40
@fzakaria:matrix.orgfzakaria (Old)off-topic: i haven't learnt or committed to flakes yet 14:06:58
@mic92:nixos.devMic92 I think one should be also able to use devShell attributes using this flake-compat file 14:08:03
@mic92:nixos.devMic92 for example nix-shell -A outputs.defaultPackage.x86_64-linux works 14:08:43
@mic92:nixos.devMic92 fzakaria: you can add devShells."<system>"."<name>" = derivation; to the flake and than you can use the same trick 14:13:21
@fzakaria:matrix.orgfzakaria (Old)okay let me give that a shot..14:23:27
@fzakaria:matrix.orgfzakaria (Old)got some good progress: https://github.com/NixOS/patchelf/pull/36217:08:14
@fzakaria:matrix.orgfzakaria (Old)first forray into flakes ;)17:08:19
@fzakaria:matrix.orgfzakaria (Old) building it all from scratch really sucks though.
I think patchelf-static would be nice editions too then we can offer releases on the GitHub page directly
17:08:50
@fzakaria:matrix.orgfzakaria (Old) and patchelf-musl-static 17:08:56
@fzakaria:matrix.orgfzakaria (Old)(I think those are safe to package from the /nix/store)17:09:13
@maljub01:matrix.orgmaljub01 joined the room.17:30:13
@kloenk:petabyte.devFinn Behrens (he/him) joined the room.18:56:08
@phirsch:matrix.orgPascal joined the room.18:57:25
@mic92:nixos.devMic92
In reply to @fzakaria:matrix.org
building it all from scratch really sucks though.
I think patchelf-static would be nice editions too then we can offer releases on the GitHub page directly
We already have static binaries for download
18:59:14
@lassulus:nixos.devlassulus joined the room.18:59:24
@mic92:nixos.devMic92
In reply to @fzakaria:matrix.org
got some good progress: https://github.com/NixOS/patchelf/pull/362
I have a look
19:01:00
@mic92:nixos.devMic92 fzakaria: there is no autotools in this devsehll 19:05:26
@mic92:nixos.devMic92 fzakaria: why inputDerivation btw? 19:07:55
@fzakaria:matrix.orgfzakaria (Old)otherwise it tries to build the package 19:12:21
@fzakaria:matrix.orgfzakaria (Old) when you do nix develop i saw 19:12:24

Show newer messages


Back to Room ListRoom Version: 6