| 19 Oct 2022 |
Charles ⚡️ | 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 ⚡️ | and yeah there's no way i'm using nouveau lol i want more than 2 fps in games | 19:13:44 |
aktaboot | even with your non graphical flake i do get ld not found 🤔 | 19:20:38 |
aktaboot | * even with your non graphical flake i do get ld not found 🤔 Charles ⚡️ | 19:20:46 |
Charles ⚡️ | hmm | 19:23:08 |
aktaboot | the worst part is I have ld on my current-system | 19:23:55 |
aktaboot | ¯\_(ツ)_/¯ | 19:24:09 |
Charles ⚡️ | well that wouldn't help because the whole point of nix is to sandbox builds | 19:24:53 |
Charles ⚡️ | https://github.com/0x192/universal-android-debloater/blob/main/.cargo/config | 19:25:56 |
Charles ⚡️ | this is why it's not working | 19:25:59 |
Charles ⚡️ | you need to patch out this file | 19:26:03 |
Charles ⚡️ | it's trying to use mold | 19:26:48 |
Charles ⚡️ | mold doesn't work on nixos because it's not patched | 19:26:55 |
Charles ⚡️ | * mold doesn't work on nixos because it's not patched/wrapped | 19:26:59 |
a-kenji | It works, but it is not included yet. | 19:27:29 |
a-kenji | There is an open or which works well. | 19:27:45 |
a-kenji | * There is an open, which works well. | 19:27:55 |
a-kenji | * There is an open pr, which works well. | 19:28:04 |
a-kenji | I hope it gets merged soonish https://github.com/NixOS/nixpkgs/pull/172452 | 19:29:28 |
a-kenji | Oh, but you will need to patch the file anyway since it hardcodes mold to /usr/bin | 19:31:04 |
aktaboot | In reply to @charles:computer.surgery this is why it's not working Oh thanks! | 19:34:14 |
aktaboot | 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 ⚡️ | In reply to @a-kenji:matrix.org There is an open pr, which works well. oh sick | 19:34:51 |
aktaboot | Will do soon ™ | 19:35:04 |
Charles ⚡️ | {
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 ⚡️ | it seems like that should be preBuild but that didn't seem to be working for some reason | 19:38:32 |
Charles ⚡️ | but preConfigure seems to work | 19:38:37 |
Charles ⚡️ | yep that built, after this you're on to adding graphics libraries until you stop having runtime errors | 19:39:56 |
Charles ⚡️ | it's pretty suboptimal of upstream to be using nightly but not provide a rust-toolchain or rust-toolchain.toml | 19:41:00 |
Charles ⚡️ | https://github.com/rust-lang/rust/issues/43244
also this is literally the only nightly feature they're using >.> | 19:42:25 |