!FBuJyWXTGcGtHTPphC:nixos.org

Nix Rust

709 Members
Rust162 Servers

Load older messages


SenderMessageTime
20 Sep 2022
@tengkuizdihar:matrix.orgIzdiharits ok, I know it's not criticism I commented on this issue because I hope that by bumping the version, that issue could be fixed12:50:04
@tengkuizdihar:matrix.orgIzdiharAnd the tree-sitter-markdown thing happened because I'm trying to bump the version from 0.1.2 to 0.212:50:35
@linus:schreibt.jetztLinux Hackermanriiiight12:50:41
@linus:schreibt.jetztLinux Hackermanyeah I'm 99% sure that won't fix the issue, you want wrapGAppsHook as mentioned before :)12:50:59
@linus:schreibt.jetztLinux Hackermanbut looking at tree-sitter-markdown I think it's a bug in its build: it assumes that you're building it with the source tree as the working directory https://github.com/dzhou121/tree-sitter-markdown/blob/split_parser/bindings/rust/build.rs#L212:51:15
@linus:schreibt.jetztLinux Hackermanwhich is probably not the case12:51:19
@tengkuizdihar:matrix.orgIzdihar
In reply to @linus:schreibt.jetzt
yeah I'm 99% sure that won't fix the issue, you want wrapGAppsHook as mentioned before :)
alright I'll do this to my PR thank you
12:52:13
@tengkuizdihar:matrix.orgIzdiharThis guy seems to get it and add a flake to build lapce. I don't know what he does differently though. Maybe because he's using crane instead of buildRustPackage?12:54:06
@tengkuizdihar:matrix.orgIzdiharCan we even use crane in nixpkgs?12:55:28
@tengkuizdihar:matrix.orgIzdihar
In reply to @tengkuizdihar:matrix.org
This guy seems to get it and add a flake to build lapce. I don't know what he does differently though. Maybe because he's using crane instead of buildRustPackage?
forgot to add the link lol https://github.com/lapce/lapce/issues/1049#issuecomment-1251641329
Linux Hackerman
12:56:17
@linus:schreibt.jetztLinux HackermanPossibly crane makes the difference, I don't know anything about it12:57:32
@linus:schreibt.jetztLinux HackermanI suspect we can't use it in nixpkgs, but again I don't know anything about it so 🤷12:58:07
@tengkuizdihar:matrix.orgIzdihar
In reply to @linus:schreibt.jetzt
I suspect we can't use it in nixpkgs, but again I don't know anything about it so 🤷
searched it in nixpkgs, no crane 👌
12:58:32
@tengkuizdihar:matrix.orgIzdihar someone literally just jumps in and said try this and I'm trying it. If it's working, what a chad. 13:03:32
@pareto-optimal-dev:matrix.orgpareto-optimal-dev joined the room.13:43:22
@tengkuizdihar:matrix.orgIzdihar Linux Hackerman: does it need to be in nativebuildinputs or can I also put it in buildInputs? I've accidentally done that and the issue persists... 14:13:12
@linus:schreibt.jetztLinux HackermanNot 100% sure but I do think it's supposed to be in nativeBuildInputs14:13:34
@gianarb:matrix.orgGianluca Arbezzano left the room.14:22:18
@gianarb:matrix.orgGianluca Arbezzano joined the room.14:22:46
@tengkuizdihar:matrix.orgIzdihar yep still the same error in nativeBuildInputs lmao Linux Hackerman 14:34:18
@linus:schreibt.jetztLinux Hackerman Izdihar: ah, I think you also need gsettings-desktop-schemas in buildInputs 14:36:40
@tengkuizdihar:matrix.orgIzdihar
In reply to @linus:schreibt.jetzt
Izdihar: ah, I think you also need gsettings-desktop-schemas in buildInputs
alright, its building time
14:37:17
@tengkuizdihar:matrix.orgIzdiharstill doesn't work lmaoo14:55:21
@tengkuizdihar:matrix.orgIzdiharI might need to follow this https://github.com/NixOS/nixpkgs/blob/95af2245a32f8e1310ad4e3bf50b76d86ddbbc0a/doc/languages-frameworks/gnome.section.md#frequently-encountered-issues-ssec-gnome-common-issues14:57:58
@gianarb:matrix.orgGianluca Arbezzano

Hello! I think I have a basic question. First time trying to package a Rust project

        alexandria = naersk'.buildPackage {
          src = builtins.fetchGit {
            url = ssh://git@github.com/.../...;
            ref = "HEAD";
            rev = "asdas";
          };
          patches = [
            ./001-remove-buildinfo.patch
          ];
          gitAllRefs = true;
        };

The build fails applying the patch with:

can't find file to patch at input line 14                                                                                       
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:

I looked at the derivation logs via nix logs and I checked the source archive directory but the files in there looks totally different compared with the one I have as part of the repository. Not sure why and as consequence the patch fails because it can't find all the files it should have

15:31:09
@gianarb:matrix.orgGianluca Arbezzano *

Hello! I think I have a basic question. First time trying to package a Rust project

        rust-test = naersk'.buildPackage {
          src = builtins.fetchGit {
            url = ssh://git@github.com/.../...;
            ref = "HEAD";
            rev = "asdas";
          };
          patches = [
            ./001-remove-buildinfo.patch
          ];
          gitAllRefs = true;
        };

The build fails applying the patch with:

can't find file to patch at input line 14                                                                                       
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:

I looked at the derivation logs via nix logs and I checked the source archive directory but the files in there looks totally different compared with the one I have as part of the repository. Not sure why and as consequence the patch fails because it can't find all the files it should have

15:31:17
21 Sep 2022
@tengkuizdihar:matrix.orgIzdihar It's working now! No more errors! The worst part about it is that I need to probably wait for the next version of the package to get some of the fixes that's included in my patch... https://github.com/NixOS/nixpkgs/issues/189571#issuecomment-1253102758 Linux Hackerman 02:36:05
@tengkuizdihar:matrix.orgIzdihar
In reply to @tengkuizdihar:matrix.org
It's working now! No more errors! The worst part about it is that I need to probably wait for the next version of the package to get some of the fixes that's included in my patch... https://github.com/NixOS/nixpkgs/issues/189571#issuecomment-1253102758 Linux Hackerman
or not, I guess now I just need to wait for a PR review
12:32:23
22 Sep 2022
@Ericson2314:matrix.orgJohn Ericson joined the room.15:36:50
@dpc:matrix.orgdpcHow do I configure a piece of code to run in my (crane-base) derivation?21:34:45

Show newer messages


Back to Room ListRoom Version: 6