!FBuJyWXTGcGtHTPphC:nixos.org

Nix Rust

715 Members
Rust163 Servers

Load older messages


SenderMessageTime
19 Dec 2022
@dusk:gaze.systemsdusk changed their profile picture.02:33:19
@steveej0:matrix.orgsteviej dusk: thanks! i tried the latter as i'm already using my own platform but it also doesn't have an effect here. i must be making this harder than it has to be somehow :-D 02:39:31
@dusk:gaze.systemsduskProbably also try the former to make sure02:40:26
@steveej0:matrix.orgsteviej that doesn't work either. i always see this: env CC_x86_64-unknown-linux-gnu=/nix/store/dq0xwmsk1g0i2ayg6pb7y87na2knzylh-gcc-wrapper-11.3.0/bin/cc 02:41:39
@dusk:gaze.systemsduskThat shouldn't be a problem, if you look at the full line you'll see its setting to the correct clang binaries afterwards02:51:18
@dusk:gaze.systemsdusk
++ env CC_x86_64-unknown-linux-gnu=/nix/store/dq0xwmsk1g0i2ayg6pb7y87na2knzylh-gcc-wrapper-11.3.0/bin/cc CXX_x86_64-unknown-linux-gnu=/nix/store/dq0xwmsk1g0i2ayg6pb7y87na2knzylh-gcc-wrapper-11.3.0/bin/c++ CC_x86_64-unknown-linux-gnu=/nix/store/j17j4qqf28js718v8pfymvhk6p3l6n38-clang-wrapper-11.1.0/bin/cc CXX_x86_64-unknown-linux-gnu=/nix/store/j17j4qqf28js718v8pfymvhk6p3l6n38-clang-wrapper-11.1.0/bin/c++ cargo build -j 16 --target x86_64-unknown-linux-gnu --frozen --release
``` like so
02:51:44
@dusk:gaze.systemsdusk *
++ env CC_x86_64-unknown-linux-gnu=/nix/store/dq0xwmsk1g0i2ayg6pb7y87na2knzylh-gcc-wrapper-11.3.0/bin/cc CXX_x86_64-unknown-linux-gnu=/nix/store/dq0xwmsk1g0i2ayg6pb7y87na2knzylh-gcc-wrapper-11.3.0/bin/c++ CC_x86_64-unknown-linux-gnu=/nix/store/j17j4qqf28js718v8pfymvhk6p3l6n38-clang-wrapper-11.1.0/bin/cc CXX_x86_64-unknown-linux-gnu=/nix/store/j17j4qqf28js718v8pfymvhk6p3l6n38-clang-wrapper-11.1.0/bin/c++ cargo build -j 16 --target x86_64-unknown-linux-gnu --frozen --release
```
like so
02:51:48
@dusk:gaze.systemsdusk *
++ env CC_x86_64-unknown-linux-gnu=/nix/store/dq0xwmsk1g0i2ayg6pb7y87na2knzylh-gcc-wrapper-11.3.0/bin/cc CXX_x86_64-unknown-linux-gnu=/nix/store/dq0xwmsk1g0i2ayg6pb7y87na2knzylh-gcc-wrapper-11.3.0/bin/c++ CC_x86_64-unknown-linux-gnu=/nix/store/j17j4qqf28js718v8pfymvhk6p3l6n38-clang-wrapper-11.1.0/bin/cc CXX_x86_64-unknown-linux-gnu=/nix/store/j17j4qqf28js718v8pfymvhk6p3l6n38-clang-wrapper-11.1.0/bin/c++ cargo build -j 16 --target x86_64-unknown-linux-gnu --frozen --release

like so

02:51:55
@dusk:gaze.systemsdusk
let
  pkgs = import <nixpkgs> {};
  rustPlatform = pkgs.makeRustPlatform {inherit (pkgs) rustc cargo; stdenv = pkgs.clangStdenv;};
in
  rustPlatform.buildRustPackage {
    pname = "hello";
    version = "a";
    src = pkgs.ripgrep.src;
    cargoLock.lockFile = "${pkgs.ripgrep.src}/Cargo.lock";
  }
  

nix drv i was using for reference

02:52:34
@dusk:gaze.systemsdusk
In reply to @dusk:gaze.systems
++ env CC_x86_64-unknown-linux-gnu=/nix/store/dq0xwmsk1g0i2ayg6pb7y87na2knzylh-gcc-wrapper-11.3.0/bin/cc CXX_x86_64-unknown-linux-gnu=/nix/store/dq0xwmsk1g0i2ayg6pb7y87na2knzylh-gcc-wrapper-11.3.0/bin/c++ CC_x86_64-unknown-linux-gnu=/nix/store/j17j4qqf28js718v8pfymvhk6p3l6n38-clang-wrapper-11.1.0/bin/cc CXX_x86_64-unknown-linux-gnu=/nix/store/j17j4qqf28js718v8pfymvhk6p3l6n38-clang-wrapper-11.1.0/bin/c++ cargo build -j 16 --target x86_64-unknown-linux-gnu --frozen --release

like so

they are being set here https://github.com/NixOS/nixpkgs/blob/e83d9efe4d520414346248dfcdb883701048c847/pkgs/build-support/rust/hooks/default.nix#L23-L26
02:52:49
@lgcl:lgcl.delgcl changed their profile picture.13:45:42
21 Dec 2022
@yuu:matrix.orgYuu☯Yin changed their display name from yuu✨✨ to Yuu☯Yin.19:55:17
22 Dec 2022
@aktaboot:tchncs.deaktaboot Charles ⚡️ in your nix-rust-quickstart, when you direnv, what shell gets executed ? 20:07:13
@aktaboot:tchncs.deaktabootis it the fake devShell.default ?20:07:29
@aktaboot:tchncs.deaktaboot* is it the fake devShells.default ?20:07:44
@aktaboot:tchncs.deaktabootso you can either have a shell.nix or a flake.nix devShells.default, anyone takes precedence ?20:08:13
@aktaboot:tchncs.deaktaboot* so you can either have a shell.nix or a flake.nix devShells.default (for nix-direnv), anyone takes precedence ?20:08:31
@charles:computer.surgeryCharles ⚡️ use nix would do shell.nix, use flake uses devShells.default from flake.nix 20:11:35
@aktaboot:tchncs.deaktabootthank20:27:53
@ralith:ralith.comRalith
In reply to @charles:computer.surgery
use nix would do shell.nix, use flake uses devShells.default from flake.nix
where does use flake come from?
21:07:42
@aktaboot:tchncs.deaktaboot
In reply to @ralith:ralith.com
where does use flake come from?
in the .envrc fiel
21:10:57
@aktaboot:tchncs.deaktaboot * in the .envrc file 21:10:59
@ralith:ralith.comRaliththat's where it goes21:11:07
@ralith:ralith.comRalith where does it come from 21:11:09
@ralith:ralith.comRalithis it packaged with direnv these days?21:11:44
@charles:computer.surgeryCharles ⚡️nix-direnv still21:43:47
@aktaboot:tchncs.deaktabootakthough direnv is built with nix 🤔21:54:20
@aktaboot:tchncs.deaktaboot* although direnv is built with nix 🤔21:54:48
@ralith:ralith.comRalith
In reply to @charles:computer.surgery
nix-direnv still
nix-direnv?
23:03:19
@charles:computer.surgeryCharles ⚡️
In reply to @ralith:ralith.com
nix-direnv?
https://github.com/nix-community/nix-direnv
23:56:25

There are no newer messages yet.


Back to Room ListRoom Version: 6