!FBuJyWXTGcGtHTPphC:nixos.org

Nix Rust

707 Members
Rust158 Servers

Load older messages


SenderMessageTime
19 Oct 2022
@charles:computer.surgeryCharles ⚡️
Date: 2022-10-19 PDT
[12:12:41.093] weston 10.0.0
               https://wayland.freedesktop.org
               Bug reports to: https://gitlab.freedesktop.org/wayland/weston/issues/
               Build: 10.0.0
[12:12:41.094] Command line: /nix/store/6l920wjzw38gvb2vcp1y2ajhhpfw3fn1-weston-10.0.0/bin/weston
[12:12:41.094] OS: Linux, 5.19.14, #1-NixOS SMP PREEMPT_DYNAMIC Wed Oct 5 08:40:55 UTC 2022, x86_64
[12:12:41.094] Flight recorder: enabled
[12:12:41.094] Starting with no config file.
[12:12:41.094] Output repaint window is 7 ms maximum.
[12:12:41.094] Loading module '/nix/store/6l920wjzw38gvb2vcp1y2ajhhpfw3fn1-weston-10.0.0/lib/libweston-10/drm-backend.so'
[12:12:41.096] initializing drm backend
[12:12:41.096] Trying logind launcher...
[12:12:41.098] logind: session control granted
[12:12:41.098] no drm device found
[12:12:41.098] fatal: failed to create compositor backend
Internal warning: debug scope 'drm-backend' has not been destroyed.
19:13:04
@charles:computer.surgeryCharles ⚡️and yeah there's no way i'm using nouveau lol i want more than 2 fps in games19:13:44
@aktaboot:tchncs.deaktaboot even with your non graphical flake i do get ld not found 🤔 19:20:38
@aktaboot:tchncs.deaktaboot * even with your non graphical flake i do get ld not found 🤔 Charles ⚡️ 19:20:46
@charles:computer.surgeryCharles ⚡️hmm19:23:08
@aktaboot:tchncs.deaktabootthe worst part is I have ld on my current-system19:23:55
@aktaboot:tchncs.deaktaboot¯\_(ツ)_/¯19:24:09
@charles:computer.surgeryCharles ⚡️well that wouldn't help because the whole point of nix is to sandbox builds19:24:53
@charles:computer.surgeryCharles ⚡️https://github.com/0x192/universal-android-debloater/blob/main/.cargo/config19:25:56
@charles:computer.surgeryCharles ⚡️this is why it's not working19:25:59
@charles:computer.surgeryCharles ⚡️you need to patch out this file19:26:03
@charles:computer.surgeryCharles ⚡️ it's trying to use mold 19:26:48
@charles:computer.surgeryCharles ⚡️ mold doesn't work on nixos because it's not patched 19:26:55
@charles:computer.surgeryCharles ⚡️ * mold doesn't work on nixos because it's not patched/wrapped 19:26:59
@a-kenji:matrix.orga-kenjiIt works, but it is not included yet.19:27:29
@a-kenji:matrix.orga-kenjiThere is an open or which works well.19:27:45
@a-kenji:matrix.orga-kenji* There is an open, which works well.19:27:55
@a-kenji:matrix.orga-kenji* There is an open pr, which works well.19:28:04
@a-kenji:matrix.orga-kenjiI hope it gets merged soonish https://github.com/NixOS/nixpkgs/pull/17245219:29:28
@a-kenji:matrix.orga-kenji Oh, but you will need to patch the file anyway since it hardcodes mold to /usr/bin 19:31:04
@aktaboot:tchncs.deaktaboot
In reply to @charles:computer.surgery
this is why it's not working
Oh thanks!
19:34:14
@aktaboot:tchncs.deaktaboot
In reply to @a-kenji:matrix.org
Oh, but you will need to patch the file anyway since it hardcodes mold to /usr/bin
Thanks
19:34:33
@charles:computer.surgeryCharles ⚡️
In reply to @a-kenji:matrix.org
There is an open pr, which works well.
oh sick
19:34:51
@aktaboot:tchncs.deaktabootWill do soon ™19:35:04
@charles:computer.surgeryCharles ⚡️
{
  inputs = {
    nixpkgs.url = "github:NixOS/nixpkgs";
    flake-utils.url = "github:numtide/flake-utils";

    fenix = {
      url = "github:nix-community/fenix";
      inputs.nixpkgs.follows = "nixpkgs";
    };

    naersk = {
      url = "github:nix-community/naersk";
      inputs.nixpkgs.follows = "nixpkgs";
    };
    
    upstream = {
      url = "github:0x192/universal-android-debloater?ref=0.5.1";
      flake = false;
    };
  };

  outputs =
    { self
    , nixpkgs
    , flake-utils

    , fenix
    , naersk
    , upstream
    }: flake-utils.lib.eachDefaultSystem (system:
    let
      pkgs = nixpkgs.legacyPackages.${system};
      toolchain = fenix.packages.${system}.toolchainOf {
        channel = "nightly";
        date = "2022-10-19";
        sha256 = "wqcIBI0cuNAj3g4Fpk83jajPpwlyV4EetYex1vInAFY=";
      };
    in
    {
      packages.default = (pkgs.callPackage naersk {
        inherit (toolchain) rustc cargo;
      }).buildPackage {
        src = "${upstream}";
        preConfigure = ''
          rm -r .cargo
        '';
      };

      checks = {
        packagesDefault = self.packages.${system}.default;
      };
    });
}

aktaboot this seems to be working

19:38:00
@charles:computer.surgeryCharles ⚡️ it seems like that should be preBuild but that didn't seem to be working for some reason 19:38:32
@charles:computer.surgeryCharles ⚡️ but preConfigure seems to work 19:38:37
@charles:computer.surgeryCharles ⚡️yep that built, after this you're on to adding graphics libraries until you stop having runtime errors19:39:56
@charles:computer.surgeryCharles ⚡️ it's pretty suboptimal of upstream to be using nightly but not provide a rust-toolchain or rust-toolchain.toml 19:41:00
@charles:computer.surgeryCharles ⚡️https://github.com/rust-lang/rust/issues/43244 also this is literally the only nightly feature they're using >.>19:42:25

There are no newer messages yet.


Back to Room ListRoom Version: 6