!FBuJyWXTGcGtHTPphC:nixos.org

Nix Rust

681 Members
Rust154 Servers

Load older messages


SenderMessageTime
28 Jun 2022
@dpc:matrix.orgdpc
In reply to @a-kenji:matrix.org
No problem! Sadly I don't really know whats going on there!
I've figured it out, I'm so pround of myself. https://github.com/rustshop/rustshop/commit/26824e3eb119b8cb5cdfcedddf291853344673a1
23:13:46
29 Jun 2022
@a-kenji:matrix.orga-kenji @dpc Was the issue that you needed to pass in system? 15:19:43
@a-kenji:matrix.orga-kenjiAh, yes! Just found the lnk to the issue.15:20:08
@a-kenji:matrix.orga-kenji @[Julian Stecklina] I cc'ed you on the pr. It was recommended we wait with merging until we know for sure, if it will be inside, when an rc will be available? 20:26:31
@qyliss:fairydust.spaceAlyssa Rossthat was me, hi :)20:28:33
@a-kenji:matrix.orga-kenjiHi o/20:30:14
30 Jun 2022
@florian:web3.foundationFlorian | W3F changed their profile picture.13:14:44
2 Jul 2022
@eg0:matrix.orgHeis joined the room.02:14:59
@eg0:matrix.orgHeis left the room.02:18:58
@grahamc:nixos.org@grahamc:nixos.org

I'm trying to compile a Rust project to be fully static, and use libcryptsetup. I've tried various approaches like:

        pkgs = import nixpkgs {
          inherit system;
          crossSystem = (import (nixpkgs + "/lib")).systems.examples.musl64 // {
            rustc.config = "x86_64-unknown-linux-musl";
          };
        };

and using cargo --target and ... other things that I can't quite remember. Here is an example repository: https://github.com/grahamc/libcryptsetup-static-rust I don't suppose anyone has a suggestion? I've stumped some of my closest rust friends so far :x

23:56:22
3 Jul 2022
@grahamc:nixos.org@grahamc:nixos.orgI made an attempt with naersk too: https://github.com/grahamc/libcryptsetup-static-rust/blob/naersk/failure00:39:32
@qyliss:fairydust.spaceAlyssa Rossgrahamc: musl != static07:32:40
@qyliss:fairydust.spaceAlyssa Ross for fully static builds you need to use pkgsStatic 07:34:23
@qyliss:fairydust.spaceAlyssa Ross and then you probably want to go through pkgs.pkgsStatic.callPackage, because pkgsStatic is cross-compilation so needs e.g. buildInputs vs nativeBuildInputs to be differentiated properly. 07:35:09
@grahamc:nixos.org@grahamc:nixos.orgI had an attempt going through pkgsStatic but I'll give that another try with callPackage, thanks :)19:02:59
@grahamc:nixos.org@grahamc:nixos.orgKiskae figured it out :O :D https://github.com/grahamc/libcryptsetup-static-rust/pull/119:26:26
@grahamc:nixos.org@grahamc:nixos.orghttps://github.com/NixOS/nixpkgs/pull/18004420:02:51
@grahamc:nixos.org@grahamc:nixos.orgthat's a lot of diff20:09:32
@grahamc:nixos.org@grahamc:nixos.org * that's a lot of rebuild20:09:39
@qyliss:fairydust.spaceAlyssa Rossyeah systemd depends on it I think20:12:08
@grahamc:nixos.org@grahamc:nixos.orghttps://github.com/NixOS/nixpkgs/pull/180045 try 2 :)20:17:26
5 Jul 2022
@deep6:matrix.orgdeep6heya'll I'm trying to package a super simple rust utility, and I'm greener than grass on all things, nix and have grafted my python package learnings onto this process, and got (at least to my eye) quite far...but I am hitting a bit of a wall, now I suspect it's something rather trivial, can anyone help me look at an error?06:53:13
@deep6:matrix.orgdeep6 Failed to run "pkg-config" "--libs" "--cflags" "glib-2.0" "glib-2.0 >= 2.42": No such file or directory (os error 2) 06:54:25
@deep6:matrix.orgdeep6I've tried including glib , but to no avail06:54:42
@kraem:ne.bul.aekraem did you include pkgconfig? 07:49:37
@deep6:matrix.orgdeep6no, 07:56:21
@deep6:matrix.orgdeep6let me try that07:56:25
@deep6:matrix.orgdeep6negative :(08:00:08
@kraem:ne.bul.aekraem try putting it in nativeBuildInputs: nativeBuildInputs = with pkgs; [ pkgconfig ]; 08:03:22
@deep6:matrix.orgdeep6 still the same "pkg-config" "--libs" "--cflags" "glib-2.0" "glib-2.0 >= 2.42"did not exit successfully: exit status: 1 --- stderr Package glib-2.0 was not found in the pkg-config search path. Perhaps you should add the directory containingglib-2.0.pc'
to the PKG_CONFIG_PATH environment variable
No package 'glib-2.0' found
08:05:47

There are no newer messages yet.


Back to Room ListRoom Version: 6