!FBuJyWXTGcGtHTPphC:nixos.org

Nix Rust

686 Members
Rust158 Servers

Load older messages


SenderMessageTime
23 Mar 2026
@niklaskorz:matrix.orgniklaskorzI don't think upstream intended this internal dependency to be at different commit revs actually, so we should ensure libcosmic points to the same revision of dbus-settings-bindings and PR that09:39:04
@niklaskorz:matrix.orgniklaskorz* I don't think upstream intended this internal dependency to be at different commit revs actually, so we should ensure libcosmic points to the same revision of dbus-settings-bindings (by patching the lockfile) and PR that09:39:20
@niklaskorz:matrix.orgniklaskorzi.e. the issue is caused by libcosmic recently adding dbus-settings-bindings as a dependency itself, which ended up with a new entry in cosmic-settings-daemon at the then-current revision of debus-settings-bindings09:41:15
@niklaskorz:matrix.orgniklaskorz* i.e. the issue is caused by libcosmic recently adding dbus-settings-bindings as a dependency itself, which ended up with a new entry in cosmic-settings-daemon at the then-current revision of dbus-settings-bindings09:41:28
@niklaskorz:matrix.orgniklaskorzwhile cosmic-settings-daemon already depended on dbus-settings-bindings directly before and never updated the rev of that dependency in its lockfile09:41:45
@niklaskorz:matrix.orgniklaskorz(if cosmic were a monorepo this wouldn't have happened)09:46:19
@niklaskorz:matrix.orgniklaskorzPR coming in a moment09:54:14
@nasso:matrix.orgnasso joined the room.13:44:15
@nasso:matrix.orgnasso

hiiiiiiiiiiiiiiiiiiiiiiiiiiiiiii im new to nix and im trying to package a rust project that is spread across many crates in many workspaces in many repos

would you recommend naersk or crane?

13:46:11
@benjaminsparks:chat.alugha.appBen Sparkspackage for nixpkgs or package for yourself13:47:41
@nasso:matrix.orgnasso or maybe i dont need either?? 13:47:28
@benjaminsparks:chat.alugha.appBen Sparks* package for nixpkgs or package for yourself?13:47:46
@nasso:matrix.orgnassowe cross compile a lot and we are pinned to like rust 1.8913:48:06
@nasso:matrix.orgnasso
In reply to @benjaminsparks:chat.alugha.app
package for nixpkgs or package for yourself
myself for now, might want to upstream to nixkpgs one day in the future though
13:48:41
@benjaminsparks:chat.alugha.appBen Sparks

if you're doing cross then you should look to crane IIRC
https://crane.dev/examples/cross-rust-overlay.html

you can pass in a rust compiler from rust-overlay for example

13:51:14
@benjaminsparks:chat.alugha.appBen Sparks *

if you're doing cross then you should look to crane IIRC
https://crane.dev/examples/cross-rust-overlay.html

you can pass in a 1.89 or later rust compiler from rust-overlay for example

13:51:24
@nasso:matrix.orgnassoawesome! i wasn't sure cuz they both seem similar14:04:29
@nasso:matrix.orgnassoi also dont want to patch the project too much so i cant really setup something like workspace-hack14:05:05
@mach50:nope.chatmach50 joined the room.15:11:10
@niko:nyanbinary.rsnyanbinary 🏳️‍⚧️ Don't think so. Still the fix should be merged for now while like niklaskorzwe can patch it to fix it for now. 19:26:25
@nasso:matrix.orgnasso hey so for the past 2 days ive been having this error when trying to use crane to build a crate in a workspace:
       > +++ command cargo check --release --locked --all-targets
       >     Updating crates.io index
       > error: failed to get `async-trait` as a dependency of package `libkypc v0.1.0 (/nix/var/nix/builds/nix-72346-1214498785/source/crates/libkypc)`
       >
       > Caused by:
       >   download of config.json failed
       >
       > Caused by:
       >   failed to download from `https://index.crates.io/config.json`
       >
       > Caused by:
       >   [60] SSL peer certificate or SSH remote key was not OK (SSL certificate OpenSSL verify result: unable to get local issuer certificate (20))

im not sure whats causing this. i can wget https://index.crates.io/config.json just fine

this is what my derivation looks like btw:
{ pkgs, libiconv, lib, stdenv, crane }:
let
  craneLib = crane.mkLib pkgs;
  src = craneLib.cleanCargoSource ./.;
  commonArgs = {
    inherit src;
    strictDeps = true;
    buildInputs = lib.optionals stdenv.isDarwin [ libiconv ];
  };
  cargoArtifacts = craneLib.buildDepsOnly commonArgs;
in {
  kypc = craneLib.buildPackage {
    inherit cargoArtifacts;
    pname = "libkypc";
    version = "0.1.0";
    cargoExtraArgs = "-p libkypc";
    doCheck = false;
    src = lib.fileset.toSource {
      root = ./.;
      fileset = lib.fileset.unions [
        ./Cargo.toml
        ./Cargo.lock
        (craneLib.fileset.commonCargoSources ./crates/libkypc)
      ];
    };
  };
}

i think im going crazy??? could it be that my Cargo.lock is outdated?? how could i update it without nix develop (which i can't even run!) i dont even have cargo installed globally!
23:45:26
24 Mar 2026
@theo-paris:matrix.org@theo-paris:matrix.org left the room.04:05:58
@zaphar_ps:matrix.org@zaphar_ps:matrix.org left the room.15:11:47
25 Mar 2026
@manman1010:matrix.org@manman1010:matrix.org joined the room.07:26:37
@manman1010:matrix.org@manman1010:matrix.org left the room.07:27:24
@nasso:matrix.orgnasso ok guys so i think i figured it out

behold, my Cargo.lock:
# This file is automatically @generated by Cargo.
# It is not intended for manual editing.
version = 3

[[package]]
name = "quick-start"
version = "0.1.0"
18:21:49
@nasso:matrix.orgnasso(yes thats the entirety of it)18:21:59
@nasso:matrix.orgnasso so i just added a devShell so i could nix develop into it and run a cargo check to update it, and now it builds! 18:22:45
@nasso:matrix.orgnassothe error did NOT help at all lmao18:23:01
29 Oct 2021
@grahamc:nixos.org@grahamc:nixos.org set the history visibility to "world_readable".19:57:43

Show newer messages


Back to Room ListRoom Version: 6