!vxTmkuJzhGPsMdkAOc:transformierende-gesellschaft.org

NixOS Matrix Subsystem

159 Members
Coordination and discussion about the matrix subsystem in NixOS - https://wiki.nixos.org/wiki/Matrix80 Servers

Load older messages


SenderMessageTime
9 May 2022
@silvio:booq.org@silvio:booq.org joined the room.12:26:56
14 May 2022
@sumner:nevarro.spaceSumner Evans

I'm trying to convert the element-web build to build from source: https://github.com/NixOS/nixpkgs/pull/172928

I'm running into the following error:

nix-env failed:
warning: ignoring the user-specified setting 'restrict-eval', because it is a restricted setting and you are not a trusted user
error: while evaluating anonymous function at /var/lib/ofborg/checkout/repo/38dca4e3aa6bca43ea96d2fcc04e8229/mr-est/ofborg-evaluator-3/.gc-of-borg-outpaths.nix:47:12, called from undefined position:
while evaluating anonymous function at /var/lib/ofborg/checkout/repo/38dca4e3aa6bca43ea96d2fcc04e8229/mr-est/ofborg-evaluator-3/pkgs/top-level/release-lib.nix:123:6, called from /var/lib/ofborg/checkout/repo/38dca4e3aa6bca43ea96d2fcc04e8229/mr-est/ofborg-evaluator-3/lib/attrsets.nix:414:43:
while evaluating 'hydraJob' at /var/lib/ofborg/checkout/repo/38dca4e3aa6bca43ea96d2fcc04e8229/mr-est/ofborg-evaluator-3/lib/customisation.nix:218:14, called from /var/lib/ofborg/checkout/repo/38dca4e3aa6bca43ea96d2fcc04e8229/mr-est/ofborg-evaluator-3/pkgs/top-level/release-lib.nix:123:14:
while evaluating the attribute 'drvPath' at /var/lib/ofborg/checkout/repo/38dca4e3aa6bca43ea96d2fcc04e8229/mr-est/ofborg-evaluator-3/lib/customisation.nix:235:13:
while evaluating the attribute 'drvPath' at /var/lib/ofborg/checkout/repo/38dca4e3aa6bca43ea96d2fcc04e8229/mr-est/ofborg-evaluator-3/lib/customisation.nix:203:13:
while evaluating the attribute 'configurePhase' of the derivation 'element-desktop-1.10.12' at /var/lib/ofborg/checkout/repo/38dca4e3aa6bca43ea96d2fcc04e8229/mr-est/ofborg-evaluator-3/pkgs/stdenv/generic/make-derivation.nix:278:7:
while evaluating 'importJSON' at /var/lib/ofborg/checkout/repo/38dca4e3aa6bca43ea96d2fcc04e8229/mr-est/ofborg-evaluator-3/lib/trivial.nix:305:16, called from /var/lib/ofborg/checkout/repo/38dca4e3aa6bca43ea96d2fcc04e8229/mr-est/ofborg-evaluator-3/pkgs/development/tools/yarn2nix-moretea/yarn2nix/default.nix:255:17:
cannot read '/nix/store/mc1xxs1k72265yxy4f74r3al8j3shfap-source/package.json', since path '/nix/store/frvz7x58khqis4fzq9g5lgmrrw6m8rf3-source.drv' is not valid, at /var/lib/ofborg/checkout/repo/38dca4e3aa6bca43ea96d2fcc04e8229/mr-est/ofborg-evaluator-3/lib/trivial.nix:306:24

I thought that I could avoid having to download the package.json since it's included in the src, but maybe not?

01:42:47
@dandellion:dodsorf.asDandellionI wouldnt be surprised if that'd lead to an IFD02:00:22
@sumner:nevarro.spaceSumner Evans
In reply to @dandellion:dodsorf.as
I wouldnt be surprised if that'd lead to an IFD
what's an IFD?
02:00:45
@dandellion:dodsorf.asDandellionImport from derivation02:01:49
@dandellion:dodsorf.asDandellionbasically when you have to do things in nix based on what's inside a derivation, it moves realising that derivation to the evaluation step. Which is obviously problematic and banned in nixpkgs02:03:05
@dandellion:dodsorf.asDandellionI've attempted to do this whole thing myself to run some patches, but it's pretty hard02:04:33
@dandellion:dodsorf.asDandellionI hope you managed to crack it!02:04:39
@dandellion:dodsorf.asDandellion * I hope you manage to crack it!02:05:00
@sumner:nevarro.spaceSumner Evans
In reply to @dandellion:dodsorf.as
basically when you have to do things in nix based on what's inside a derivation, it moves realising that derivation to the evaluation step. Which is obviously problematic and banned in nixpkgs
oh, that makes sense... not sure why the mkYarnPackage has that as default then
02:05:05
@dandellion:dodsorf.asDandellionThe absolute end-goal for the element packages would probably be to package matrix-react-sdk separately and using that build element-web and using that to build the electron app. But that's like, prohibitively difficult I think 02:10:19
@sumner:nevarro.spaceSumner Evans
In reply to @dandellion:dodsorf.as
I hope you manage to crack it!
🤞
ideally once it's merged, you should be able to override matrix-react-sdk and matrix-js-sdk with your own fork (https://github.com/sumnerevans/home-manager-config/blob/master/modules/communication.nix)
02:10:22
@sumner:nevarro.spaceSumner Evans
In reply to @dandellion:dodsorf.as
The absolute end-goal for the element packages would probably be to package matrix-react-sdk separately and using that build element-web and using that to build the electron app. But that's like, prohibitively difficult I think
I was actually wondering about that... it's definitely not impossible: https://github.com/sumnerevans/home-manager-config/blob/master/pkgs/element/matrix-react-sdk.nix
02:11:02
@dandellion:dodsorf.asDandellionthat's less hacky than what I imagined so that's neat02:13:25
@sumner:nevarro.spaceSumner EvansIf this gets merged, then I'll probably refactor matrix-react-sdk and matrix-js-sdk out as well to make overriding them easier02:13:58
@dandellion:dodsorf.asDandellionthat'd be great I think02:14:10
@sumner:nevarro.spaceSumner Evansya, those are the two projects where actual changes happen haha02:14:26
@dandellion:dodsorf.asDandellionI'm sitting on a >greentext command patch that I never bothered to deploy after it was rejected from upstream02:14:51
@sumner:nevarro.spaceSumner Evansgreentext?02:15:10
@dandellion:dodsorf.asDandellionhttps://github.com/matrix-org/matrix-react-sdk/pull/583502:16:13
@sumner:nevarro.spaceSumner Evansmy motivation was that Beeper implemented custom emojis (just putting an MXC URI into the key of the reaction) and all my coworkers are using them, but I'm using Element and couldn't see them, and also I finally got annoyed enough by https://github.com/matrix-org/matrix-react-sdk/pull/8590 that I decided to go fix it02:17:46
@dandellion:dodsorf.asDandellion👀 you have an element custom emote patch that isn't in license-hell 👀 02:18:30
@dandellion:dodsorf.asDandellion * 👀 you have an element custom emote patch that isn't in license-hell? 👀 02:18:35
@dandellion:dodsorf.asDandellion * 👀 you have an element-web custom emote patch that isn't in license-hell? 👀 02:18:48
@sumner:nevarro.spaceSumner Evans
In reply to @dandellion:dodsorf.as
👀 you have an element-web custom emote patch that isn't in license-hell? 👀
what do you mean license hell?
02:19:04
@dandellion:dodsorf.asDandellionponies.im, the OG custom emote element fork is licensed under a very strange unvetted license02:19:43
@sumner:nevarro.spaceSumner Evansoh interesting. https://github.com/sumnerevans/matrix-react-sdk/commit/70aeda0b6fd726587ff4c3c73c2039091685959d#diff-1fd377da084a5ab2202096d5f96c26e23166890b6e0556229bda69cd6461afd2R134-R145 is all it is haha02:20:10
@dandellion:dodsorf.asDandellionneat!02:22:07
@sumner:nevarro.spaceSumner Evans
In reply to @dandellion:dodsorf.as
I wouldnt be surprised if that'd lead to an IFD
Looks like that was exactly what it was. Thanks for the hint! The build is fixed now: https://github.com/NixOS/nixpkgs/pull/172928. Hoping that someone with power can get that merged.
04:18:40
15 May 2022
@luxus:furiosa.orgluxus joined the room.10:51:40

Show newer messages


Back to Room ListRoom Version: 4