!FBuJyWXTGcGtHTPphC:nixos.org

Nix Rust

706 Members
Rust162 Servers

Load older messages


SenderMessageTime
3 Jul 2022
@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
@deep6:matrix.orgdeep6https://pastebin.com/VHkQk2G608:07:02
@deep6:matrix.orgdeep6is my code08:07:02
@kraem:ne.bul.aekraemthat's not the same error though? how are you including glib?08:07:04
@kraem:ne.bul.aekraem you're not using glib, only taking it as an argument. you need to use it in buildInputs / nativeBuildInputs 08:08:14
@deep6:matrix.orgdeep6oh08:08:37
@deep6:matrix.orgdeep6you're right, sorry I'm tired...1 am here08:09:06
@deep6:matrix.orgdeep6I'm still a rookie with nix08:09:37
@deep6:matrix.orgdeep6is it as simple as adding glib to where I have only pkgconfig as in [ glib pkgconfig]08:12:23
@kraem:ne.bul.aekraem np :) i think you want to do buildInputs = with pkgs; [ glib ]; nativeBuildInputs = with pkgs; [ pkgconfig ] 08:13:48
@deep6:matrix.orgdeep6is it now just a matter of iterating through and adding the dependencies as they come up to buildInputs?08:20:11
@kraem:ne.bul.aekraemyeah, pretty much08:23:27
@deep6:matrix.orgdeep6any idea what the gdk 3.0 package is called, tried gdk, gdk3, gdk30 and searched using search.nixos no luck08:25:35
@deep6:matrix.orgdeep6or is it not packaged... you'd think it would be if gdk-pixbuf is...08:26:39

Show newer messages


Back to Room ListRoom Version: 6