!FBuJyWXTGcGtHTPphC:nixos.org

Nix Rust

508 Members
Rust112 Servers

Load older messages


SenderMessageTime
20 Dec 2024
@reflux1291:catgirl.cloudAny (they/any) cargo install spl-token-cli 14:02:27
@reflux1291:catgirl.cloudAny (they/any)but i get errors like install pkg-config, install libudev, etc14:03:04
@reflux1291:catgirl.cloudAny (they/any)i mean, install, but after i install i just get erros from those14:03:25
@reflux1291:catgirl.cloudAny (they/any)or, cargo doesn't see it14:03:47
@morj:morj.menMorj I'm surprised the install works then. You should follow instructions from here to package it: https://wiki.nixos.org/wiki/Rust#Packaging_Rust_projects_with_nix - and don't forget to add all those system libs it requires as buildInputs 14:04:27
@morj:morj.menMorj"Instructions" is a big word for this page, but basically you'll need to package it yourself. I don't have any packaging guides on hand14:05:08
@morj:morj.menMorj* "Instructions" is a big word for this page, but basically you'll need to package it yourself. I don't have any packaging guides on hand, try looking for a tutorial of packaging something in nix14:05:30
@reflux1291:catgirl.cloudAny (they/any)there's that https://github.com/NixOS/nixpkgs/pull/35983414:05:47
@reflux1291:catgirl.cloudAny (they/any)how would i use it?14:05:57
@morj:morj.menMorj Ah well then it's easy: download the default.nix file from this MR, and install it with nix-env --install --file the-downloaded-derivation.nix. See here: https://nix.dev/manual/nix/2.18/command-ref/nix-env/install 14:07:37
@morj:morj.menMorjSeeing as the MR was closed, this might not work with some build errors ;-)14:08:41
@morj:morj.menMorj* Seeing as the MR was closed, this might not work with some build errors. In this case go back to the step where you have to learn to package programs ;-)14:09:04
@reflux1291:catgirl.cloudAny (they/any)

i already tried it before, i get:

error: cannot evaluate a function that has an argument without a value ('rustPlatform')
       Nix attempted to evaluate a function as a top level expression; in
       this case it must have its arguments supplied either by default
       values, or passed explicitly with '--arg' or '--argstr'. See
       https://nixos.org/manual/nix/stable/language/constructs.html#functions.
       at /home/egor/package.nix:2:3:
            1| {
            2|   rustPlatform,
             |   ^
            3|   lib,

14:09:51
@morj:morj.menMorj Ah right, the nixpkgs style. Make a file build.nix with contents like:
let pkgs = import <nixpkgs> {}:
in pkgs.callPackage ./the-downloaded-derivation.nix {}
and install from it.
More info here: https://summer.nixos.org/blog/callpackage-a-tool-for-the-lazy/
14:12:44
@morj:morj.menMorj Ah right, the nixpkgs style. Make a file build.nix with contents like:
let pkgs = import <nixpkgs> {};
in pkgs.callPackage ./the-downloaded-derivation.nix {}
and install from it.
More info here: https://summer.nixos.org/blog/callpackage-a-tool-for-the-lazy/
14:12:59
21 Dec 2024
@reflux1291:catgirl.cloudAny (they/any)okkk, it took so much time to build04:53:49
@reflux1291:catgirl.cloudAny (they/any)
running 6 tests
error: test failed, to rerun pass `-p spl-single-pool-cli --test test`

Caused by:
  process didn't exit successfully: `/build/source/target/x86_64-unknown-linux-gnu/release/deps/test-9815e0e0c5011ef9 --test-threads=8` (signal: 4, SIGILL: illegal instruction)
error: builder for '/nix/store/hgw8hmlscl7x9gxr5w453x8z89g79cw3-spl-token-cli-5.0.0.drv' failed with exit code 101;
       last 25 log lines:
       >      Running tests/update_pool_token_metadata.rs (target/x86_64-unknown-linux-gnu/release/deps/update_pool_token_metadata-d11fb8bc649a27e4)
       >
       > running 0 tests
       >
       > test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
       >
       >      Running tests/withdraw.rs (target/x86_64-unknown-linux-gnu/release/deps/withdraw-77954459d058a0d8)
       >
       > running 0 tests
       >
       > test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
       >
       >      Running unittests src/main.rs (target/x86_64-unknown-linux-gnu/release/deps/spl_single_pool-6e7b6eb65fa77ae7)
       >
       > running 0 tests
       >
       > test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
       >
       >      Running tests/test.rs (target/x86_64-unknown-linux-gnu/release/deps/test-9815e0e0c5011ef9)
       >
       > running 6 tests
       > error: test failed, to rerun pass `-p spl-single-pool-cli --test test`
       >
       > Caused by:
       >   process didn't exit successfully: `/build/source/target/x86_64-unknown-linux-gnu/release/deps/test-9815e0e0c5011ef9 --test-threads=8` (signal: 4, SIGILL: illegal instruction)
       For full logs, run 'nix log /nix/store/hgw8hmlscl7x9gxr5w453x8z89g79cw3-spl-token-cli-5.0.0.drv'.

04:53:54
@stablejoy:matrix.org@stablejoy:matrix.org left the room.05:08:16
@reflux1291:catgirl.cloudAny (they/any)Like that 😄09:34:55
22 Dec 2024
@anjix:matrix.organji joined the room.00:13:47
@anjix:matrix.organji Hey. I'm new to Nix. And I'm a little confused about https://nixos.wiki/wiki/Rust
Is this advice out of date? Why wouldn't I just add cargo and rustc to my environment.systemPackages ? .. rustc on search.nixos.org is listed at 1.82 which is only barely behind the latest at 1.83. Seems fine for my purposes...
00:16:57
@reflux1291:catgirl.cloudAny (they/any)
In reply to @anjix:matrix.org
Hey. I'm new to Nix. And I'm a little confused about https://nixos.wiki/wiki/Rust
Is this advice out of date? Why wouldn't I just add cargo and rustc to my environment.systemPackages ? .. rustc on search.nixos.org is listed at 1.82 which is only barely behind the latest at 1.83. Seems fine for my purposes...
A couple of years outdated
02:15:32
@aktaboot:tchncs.deaktaboot
In reply to @anjix:matrix.org
Hey. I'm new to Nix. And I'm a little confused about https://nixos.wiki/wiki/Rust
Is this advice out of date? Why wouldn't I just add cargo and rustc to my environment.systemPackages ? .. rustc on search.nixos.org is listed at 1.82 which is only barely behind the latest at 1.83. Seems fine for my purposes...
you want to go to wiki..nixos.org instead https://wiki.nixos.org/wiki/Rust
07:13:32
@ralith:ralith.comRalithwhy's the old wiki still up?21:48:32
@antifuchs:asf.computerantifuchsDomain’s not controlled by the nix org, and the person running it doesn’t want to give it up is the short story iirc22:13:00
@ralith:ralith.comRaliththat seems short-sighted of them; shame.22:20:40
@antifuchs:asf.computerantifuchsIt’s an annoying situation for sure. The official wiki is relatively new, so hopefully activity on it will supplant the older site on search engines eventually22:23:41
@labataxe:matrix.orglabataxe joined the room.23:05:51
24 Dec 2024
@joaomoreira:matrix.orgJoão Moreira joined the room.20:53:57
@r522:matrix.org522also note: there's a userscript to redirect you automatically https://greasyfork.org/en/scripts/495011-redirect-to-wiki-nixos-org23:29:37

Show newer messages


Back to Room ListRoom Version: 6