!ayCRiZriCVtuCUpeLp:nixos.org

Nix Cross Compiling

583 Members
128 Servers

Load older messages


SenderMessageTime
13 Jul 2025
@quadradical:federated.nexusQuadRadical (Ping) @emily 21:26:51
@quadradical:federated.nexusQuadRadical (Ping) this builds:
  depsBuildBuild = [
    pkg-config
    lvm2.dev
    udev
  ];
  nativeBuildInputs = [
    rustPlatform.bindgenHook
  ];
  buildInputs = [
    udev
    lvm2
  ];
21:26:55
@quadradical:federated.nexusQuadRadical (Ping)that works fine21:27:00
@quadradical:federated.nexusQuadRadical (Ping)just had to put udev in both21:27:08
@emilazy:matrix.orgemilywith no environment variables?21:27:09
@quadradical:federated.nexusQuadRadical (Ping)correct21:27:13
@quadradical:federated.nexusQuadRadical (Ping)and strictDeps21:27:18
@emilazy:matrix.orgemily what if you drop udev from pkgsBuildBuild and add pkg-config to nativeBuildInputs as well as depsBuildBuild? 21:27:34
@emilazy:matrix.orgemily * what if you drop udev from depsBuildBuild and add pkg-config to nativeBuildInputs as well as depsBuildBuild? 21:27:41
@quadradical:federated.nexusQuadRadical (Ping)sure will try21:27:58
@quadradical:federated.nexusQuadRadical (Ping) fails 21:28:39
@quadradical:federated.nexusQuadRadical (Ping)
The system library `devmapper` required by crate `devicemapper-sys` was not found.
       >   The file `devmapper.pc` needs to be installed and the PKG_CONFIG_PATH environment variable must contain its parent directory.
       >   PKG_CONFIG_PATH contains the following:
       >       - /nix/store/dgkyx5chvihgvmgb8pvc8qxq4gqm37b6-systemd-minimal-libs-aarch64-unknown-linux-gnu-257.6-dev/lib/pkgconfig
       >       - /nix/store/dgkyx5chvihgvmgb8pvc8qxq4gqm37b6-systemd-minimal-libs-aarch64-unknown-linux-gnu-257.6-dev/share/pkgconfig
       >
       >   HINT: you may need to install a package such as devmapper, devmapper-dev or devmapper-devel.The system library `devmapper` required by crate `devicemapper-sys` was not found.
       >   The file `devmapper.pc` needs to be installed and the PKG_CONFIG_PATH environment variable must contain its parent directory.
       >   PKG_CONFIG_PATH contains the following:
       >       - /nix/store/dgkyx5chvihgvmgb8pvc8qxq4gqm37b6-systemd-minimal-libs-aarch64-unknown-linux-gnu-257.6-dev/lib/pkgconfig
       >       - /nix/store/dgkyx5chvihgvmgb8pvc8qxq4gqm37b6-systemd-minimal-libs-aarch64-unknown-linux-gnu-257.6-dev/share/pkgconfig
       >
       >   HINT: you may need to install a package such as devmapper, devmapper-dev or devmapper-devel.
21:28:46
@emilazy:matrix.orgemily I see. and if you drop pkg-config from depsBuildBuild and set "PKG_CONFIG_${stdenv.buildPlatform.config}" = lib.getExe pkgsBuildBuild.pkg-config;? 21:29:26
@quadradical:federated.nexusQuadRadical (Ping) like this then?
  "PKG_CONFIG_${stdenv.buildPlatform.config}" = lib.getExe pkgsBuildBuild.pkg-config;
  depsBuildBuild = [
    lvm2.dev
  ];
  nativeBuildInputs = [
    pkg-config
    rustPlatform.bindgenHook
  ];
  buildInputs = [
    udev
  ];
21:30:03
@quadradical:federated.nexusQuadRadical (Ping)same err21:30:06
@quadradical:federated.nexusQuadRadical (Ping) The system library devmapper required by crate devicemapper-sys was not found. 21:30:12
@quadradical:federated.nexusQuadRadical (Ping)
       >   The system library `devmapper` required by crate `devicemapper-sys` was not found.
       >   The file `devmapper.pc` needs to be installed and the PKG_CONFIG_PATH environment variable must contain its parent directory.
       >   PKG_CONFIG_PATH contains the following:
       >       - /nix/store/dgkyx5chvihgvmgb8pvc8qxq4gqm37b6-systemd-minimal-libs-aarch64-unknown-linux-gnu-257.6-dev/lib/pkgconfig
       >       - /nix/store/dgkyx5chvihgvmgb8pvc8qxq4gqm37b6-systemd-minimal-libs-aarch64-unknown-linux-gnu-257.6-dev/share/pkgconfig
       >
       >   HINT: you may need to install a package such as devmapper, devmapper-dev or devmapper-devel.
21:30:26
@emilazy:matrix.orgemilyuh, hmm.21:30:34
@emilazy:matrix.orgemilythis is confusing :)21:30:42
@emilazy:matrix.orgemily I don't understand why it works with the wrong udev. 21:31:03
@quadradical:federated.nexusQuadRadical (Ping) well putting udev solely in depsBuildBuild fixes devmapper but breaks thinp 21:31:33
@quadradical:federated.nexusQuadRadical (Ping)same with lvm221:31:41
@quadradical:federated.nexusQuadRadical (Ping)putting it in both allows both to build21:31:47
@emilazy:matrix.orgemilyyes. but I don't quite understand how it manages to keep the two separate :)21:31:54
@quadradical:federated.nexusQuadRadical (Ping)let me try again make sure im not crazy21:32:05
@quadradical:federated.nexusQuadRadical (Ping)wait its failing now21:32:24
@quadradical:federated.nexusQuadRadical (Ping)uhhh21:32:25
@quadradical:federated.nexusQuadRadical (Ping)thinp fails to build again now21:32:35
@emilazy:matrix.orgemily maybe nix derivation show the output path of the one that actually worked 21:32:46
@emilazy:matrix.orgemilyyou probably built something different to what you thought21:32:54

Show newer messages


Back to Room ListRoom Version: 6