!FBuJyWXTGcGtHTPphC:nixos.org

Nix Rust

700 Members
Rust155 Servers

Load older messages


SenderMessageTime
15 May 2025
@emilazy:matrix.orgemilythat doesn't sound right19:18:16
@winter:catgirl.cloudWinterbump is imminent19:36:45
@winter:catgirl.cloudWinter* bump is imminent fwiw19:36:52
@winter:catgirl.cloudWinter https://github.com/NixOS/nixpkgs/pull/407444 -- finally took the chance to drop libiconv from darwin's explicit closure 19:46:00
@staberinde:matrix.orgstaberinde I'm fairly sure this is a stupid question, but I can't find anything in the documentation that directly answers this. What's the easiest way to use an updated set of crateOverrides with buildRustPackage? 20:01:43
@qyliss:fairydust.spaceAlyssa RossbuildRustPackage doesn't use crateOverrides20:02:05
@qyliss:fairydust.spaceAlyssa Rossthey're for buildRustCrate20:02:38
@staberinde:matrix.orgstaberinde exactly, but I'm finding that I need include a nix dependency that I need to my buildRustPackage invocation to see 20:03:21
@staberinde:matrix.orgstaberinde

Currently I have

20:03:34
@staberinde:matrix.orgstaberinde *

Currently I have

borg-tui = pkgs.rustPlatform.buildRustPackage (finalAttrs: rec {
    pname = "borgtui";
    version = "fdcf13ba063a9e8516e5bc5f679af5504304819d";
    src = pkgs.fetchFromGitHub {
      owner = "dpbriggs";
      repo = pname;
  rev = version;
  sha256 = "7UbwW53HTM4oTbDnNruwjtF0KrnhoiCYXWl0CbXfMSk=";
};
nativeBuildInputs = [
  pkgs.pkg-config
];
bulldInputs = [
  pkgs.fuse3
];
cargoHash = "sha256-7F87unpr3OoY9SFBS2iwKhk2khYKH5w5xaENHUwnqC0=";

});

20:04:12
@staberinde:matrix.orgstaberinde *

Currently I have

borg-tui = pkgs.rustPlatform.buildRustPackage (finalAttrs: rec {
    pname = "borgtui";
    version = "fdcf13ba063a9e8516e5bc5f679af5504304819d";
    src = pkgs.fetchFromGitHub {
      owner = "dpbriggs";
      repo = pname;
      rev = version;
      sha256 = "7UbwW53HTM4oTbDnNruwjtF0KrnhoiCYXWl0CbXfMSk=";
    };
    nativeBuildInputs = [
      pkgs.pkg-config
    ];
    bulldInputs = [
      pkgs.fuse3
    ];
    cargoHash = "sha256-7F87unpr3OoY9SFBS2iwKhk2khYKH5w5xaENHUwnqC0=";
  });
20:04:56
@qyliss:fairydust.spaceAlyssa Ross
In reply to @staberinde:matrix.org
exactly, but I'm finding that I need include a nix dependency that I need to my buildRustPackage invocation to see
yes, with buildRustPackage you have to specify the non-Rust dependencies yourself
20:06:08
@staberinde:matrix.orgstaberinde Which is failing at the point of building the vendored package archive with:
> pkg-config exited with status code 1
> > PKG_CONFIG_ALLOW_SYSTEM_LIBS=1 PKG_CONFIG_ALLOW_SYSTEM_CFLAGS=1 pkg-config --libs --cflags fuse3 fuse3 >= 3.0.0
>
> The system library fuse3 required by crate fuser was not found.
> The file fuse3.pc needs to be installed and the PKG_CONFIG_PATH environment variable must contain its parent directory.
> The PKG_CONFIG_PATH environment variable is not set.
>
> HINT: if you have installed the library, try setting PKG_CONFIG_PATH to the directory containing fuse3.pc.
20:06:15
@staberinde:matrix.orgstaberinde Ah okay, how would I provide a do that for a dependent crate? buildInputs comes in somewhere I would guess but I can't see what that would look like 20:08:14
@k900:0upti.meK900What you're doing should work20:08:27
@staberinde:matrix.orgstaberindethat's what I would have thought, but I'm not that experienced with the rust ecosystem within nixpkgs20:18:43
@k900:0upti.meK900Are you on 24.11 or unstable?20:28:19
@staberinde:matrix.orgstaberinde24.1120:29:15
@k900:0upti.meK900The file is definitely there for me on unstable20:29:29
@k900:0upti.meK900I have not checked 24.1120:29:33
@staberinde:matrix.orgstaberinde which file is that, fuse3.pc? 20:31:20
@k900:0upti.meK900Yes20:32:35
@staberinde:matrix.orgstaberinde I can confirm it's there in my 24.11 rev too /nix/store/c53z0p2yw9q2dfkxkvlpbz29g8n5isdc-fuse-3.16.2-dev/lib/pkgconfig/fuse3.pc 20:57:59
@staberinde:matrix.orgstaberinde

but the odd thing is that if I get the same error even with PKG_CONFIG_PATH pointing to the above:

[root@majortheobaldslapper:/tmp/nix-build-borgtui-fdcf13ba063a9e8516e5bc5f679af5504304819d.drv-3]# source build/env-vars

[root@majortheobaldslapper:/build/source]#  PKG_CONFIG_ALLOW_SYSTEM_LIBS=1 PKG_CONFIG_ALLOW_SYSTEM_CFLAGS=1 pkg-config --libs --cflags fuse3 fuse3 >= 3.0.0
Package fuse3 was not found in the pkg-config search path.
Perhaps you should add the directory containing `fuse3.pc'
to the PKG_CONFIG_PATH environment variable
No package 'fuse3' found
Package fuse3 was not found in the pkg-config search path.
Perhaps you should add the directory containing `fuse3.pc'
to the PKG_CONFIG_PATH environment variable
No package 'fuse3' found
Package 3.0.0 was not found in the pkg-config search path.
Perhaps you should add the directory containing `3.0.0.pc'
to the PKG_CONFIG_PATH environment variable
No package '3.0.0' found

[root@majortheobaldslapper:/build/source]# echo $PKG_CONFIG
$PKG_CONFIG              $PKG_CONFIG_ALLOW_CROSS

[root@majortheobaldslapper:/build/source]# export PKG_CONFIG_PATH=/nix/store/c53z0p2yw9q2dfkxkvlpbz29g8n5isdc-fuse-3.16.2-dev/lib/pkgconfig/

[root@majortheobaldslapper:/build/source]#  PKG_CONFIG_ALLOW_SYSTEM_LIBS=1 PKG_CONFIG_ALLOW_SYSTEM_CFLAGS=1 pkg-config --libs --cflags fuse3 fuse3 >= 3.0.0
Package 3.0.0 was not found in the pkg-config search path.
Perhaps you should add the directory containing `3.0.0.pc'
to the PKG_CONFIG_PATH environment variable
No package '3.0.0' found

[root@majortheobaldslapper:/build/source]# echo $PKG_CONFIG_PATH/
/nix/store/c53z0p2yw9q2dfkxkvlpbz29g8n5isdc-fuse-3.16.2-dev/lib/pkgconfig//

[root@majortheobaldslapper:/build/source]# ls -la $PKG_CONFIG_PATH/
total 12
dr-xr-xr-x 2 root root 4096 Jan  1  1970 .
dr-xr-xr-x 3 root root 4096 Jan  1  1970 ..
-r--r--r-- 2 root root  328 Jan  1  1970 fuse3.pc

[root@majortheobaldslapper:/build/source]#
21:00:50
@staberinde:matrix.orgstaberindewait nm, I think that's a quoting issue21:02:15
@staberinde:matrix.orgstaberinde

yep, setting PKG_CONFIG_PATH would fix it as expected

[root@majortheobaldslapper:/build/source]#  PKG_CONFIG_ALLOW_SYSTEM_LIBS=1 PKG_CONFIG_ALLOW_SYSTEM_CFLAGS=1 pkg-config --libs --cflags fuse3 fuse3>=3.0.0

[root@majortheobaldslapper:/build/source]# echo $?
0

[root@majortheobaldslapper:/build/source]# unset PKG_CONFIG_PATH

[root@majortheobaldslapper:/build/source]#  PKG_CONFIG_ALLOW_SYSTEM_LIBS=1 PKG_CONFIG_ALLOW_SYSTEM_CFLAGS=1 pkg-config --libs --cflags fuse3 fuse3>=3.0.0
Package fuse3 was not found in the pkg-config search path.
Perhaps you should add the directory containing `fuse3.pc'
to the PKG_CONFIG_PATH environment variable
No package 'fuse3' found
Package fuse3 was not found in the pkg-config search path.
Perhaps you should add the directory containing `fuse3.pc'
to the PKG_CONFIG_PATH environment variable
No package 'fuse3' found
21:05:21
@k900:0upti.meK900
In reply to @staberinde:matrix.org

Currently I have

borg-tui = pkgs.rustPlatform.buildRustPackage (finalAttrs: rec {
    pname = "borgtui";
    version = "fdcf13ba063a9e8516e5bc5f679af5504304819d";
    src = pkgs.fetchFromGitHub {
      owner = "dpbriggs";
      repo = pname;
      rev = version;
      sha256 = "7UbwW53HTM4oTbDnNruwjtF0KrnhoiCYXWl0CbXfMSk=";
    };
    nativeBuildInputs = [
      pkgs.pkg-config
    ];
    bulldInputs = [
      pkgs.fuse3
    ];
    cargoHash = "sha256-7F87unpr3OoY9SFBS2iwKhk2khYKH5w5xaENHUwnqC0=";
  });
Fuck this
21:10:06
@k900:0upti.meK900You misspelled buildInputs21:10:12
@k900:0upti.meK900This is your entire problem 21:10:18
@staberinde:matrix.orgstaberindeoh FFS21:10:26

Show newer messages


Back to Room ListRoom Version: 6