| 23 Nov 2021 |
@teutat3s:pub.solar | Ah nice that helped! Now it's building version 1.9.2 from the wrong channel though... hmmm | 16:51:42 |
@danielphan.2003:matrix.org | I suppose you want to use the unstable element-desktop, in that case change self: super: to channels: final: prev:, and super.element-desktop to channels.latest.element-desktop (assuming you use the base DevOS) | 17:11:08 |
@teutat3s:pub.solar | you're assuming correctly, the file I'd like to add the fixup phase to is probably this one:
https://github.com/NixOS/nixpkgs/blob/nixos-unstable/pkgs/applications/networking/instant-messengers/element/element-desktop.nix | 17:13:52 |
@teutat3s:pub.solar | so I guess I'll have to take mkYarnPackage into that overlay somewhere? | 17:14:44 |
@teutat3s:pub.solar | * so I guess I'll have to integrate mkYarnPackage into that overlay somewhere? | 17:14:51 |
@teutat3s:pub.solar | Daniel Phan: I don't get any errors with that change, but the resulting $out/bin/element-desktop wrapper doesn't include the change from the defined fixupPhase | 17:21:57 |
@danielphan.2003:matrix.org | You should use makeWrapper for this
wrapProgram $out/bin/element-desktop \
--prefix LD_PRELOAD : ${prev.sqlcipher}/lib/libsqlcipher
so
| 17:48:25 |
@danielphan.2003:matrix.org | Also why do you need to wrap element with this? I normally would wrap it with ozone flags so it behaves well on Wayland | 17:49:39 |
@danielphan.2003:matrix.org | * You should use makeWrapper for this
```
wrapProgram $out/bin/element-desktop \
--prefix LD_PRELOAD : ${prev.sqlcipher}/lib/libsqlcipher.so
``` | 17:52:14 |
@teutat3s:pub.solar | ah thanks, I'll try that next. I'm trying to make search in encrypted rooms work, following this conversation: https://github.com/NixOS/nixpkgs/pull/132633#issuecomment-943316734 | 18:18:34 |
@teutat3s:pub.solar | Wow search in encrypted rooms really works with that change
channels: final: prev: {
element-desktop-search-fixed = channels.latest.element-desktop-wayland.overrideAttrs (oldAttrs: {
fixupPhase = ''
sed -i "s#exec#LD_PRELOAD=${channels.latest.sqlcipher}/lib/libsqlcipher.so exec#g" "$out/bin/element-desktop"
'';
});
}
| 18:46:32 |
@teutat3s:pub.solar | I'll try wrapProgram next | 18:46:40 |
@teutat3s:pub.solar | * I'll try wrapProgram next | 18:46:45 |
@teutat3s:pub.solar | Daniel Phan: b12f thanks for the help | 18:51:22 |
@teutat3s:pub.solar | ...but rendering is really laggy somehow. 😀 great - one bug fixed, a new one to fix. | 18:53:10 |
| 26 Nov 2021 |
@teutat3s:pub.solar | new PR: follow release-21.11, use nix 2.4 https://github.com/divnix/digga/pull/114 | 11:23:40 |
David Arnold (blaggacao) | Alex Zero: Hi Alex, might you have the chance to have a look at https://github.com/divnix/digga/pull/114#discussion_r757439471 ? I really don't know what to do, here. I remember I reviewed that codepath in nix in connection with your follows patch. Maybe you've got an idea, here. | 12:04:32 |
| 30 Nov 2021 |
@teutat3s:pub.solar | David Arnold (blaggacao): maybe nixFlakes is an even better alias than nixUnstable, as it's pinned to nix 2.4? Or do we want to follow nix development more closely? | 00:24:43 |
@teutat3s:pub.solar | Thanks for merging btw ( : | 00:25:02 |
@teutat3s:pub.solar | * David Arnold (blaggacao): maybe nixFlakes is an even better alias than nixUnstable, as it's pinned to nix 2.4? Or do we want to follow nix development more closely? | 00:30:30 |
David Arnold (blaggacao) | I think we should finally do the complete switch to deploy-rs for all deployment task. One-size fits all is just too tempting. | 03:09:05 |
David Arnold (blaggacao) | We could start by auto-providing deploy.nodes.* outputs by default in digga & then add logic for home-manager profiles. | 03:10:06 |
David Arnold (blaggacao) | Then, we can deploy 🤞hm profiles something like this: deploy .#kuma.blaggacao | 03:11:08 |
David Arnold (blaggacao) | Gytis Ivaskevicius: would you accept a dependency on nix-community/nixpkgs.lib in turn for a little bit f convenience and maintainability in fup? | 04:13:30 |
David Arnold (blaggacao) | almost: | 04:51:11 |
David Arnold (blaggacao) | ❯ deploy .#ws.blaggacao@127.0.0.1:22 -s
🚀 ℹ️ [deploy] [INFO] Evaluating flake in .
warning: Git tree '/home/blaggacao/src/github.com/blaggacao/devos' is dirty
🚀 ℹ️ [deploy] [INFO] The following profiles are going to be deployed:
[ws.blaggacao]
user = "blaggacao"
path = "/nix/store/nysd6q63iw2lpb44fqm6c5k2xrvb9nff-activatable-home-manager-generation"
uri = "ssh://blaggacao@127.0.0.1:22"
ssh_opts = []
🚀 ℹ️ [deploy] [INFO] Building profile `blaggacao` for node `ws`
🚀 ℹ️ [deploy] [INFO] Copying profile `blaggacao` to node `ws`
zsh:1: command not found: nix-store
error: cannot connect to 'blaggacao@127.0.0.1'
🚀 ❌ [deploy] [ERROR] Failed to push profile: Nix copy command resulted in a bad exit code: Some(1)
| 04:51:21 |
David Arnold (blaggacao) | ❯ ssh 127.0.0.1
blaggacao@127.0.0.1's password:
Welcome to Pop!_OS 21.04 (GNU/Linux 5.13.0-7620-generic x86_64)
* Homepage: https://pop.system76.com
* Support: https://support.system76.com
Last login: Mon Nov 29 23:46:53 2021 from 127.0.0.1
blaggacao in dar in ~
❯ nix-store -h
error: no operation specified
Try 'nix-store --help' for more information.
yeah!
| 04:51:51 |
David Arnold (blaggacao) | ❯ ssh 127.0.0.1 -- nix-store -h
blaggacao@127.0.0.1's password:
zsh:1: command not found: nix-store
ouch!
| 04:52:05 |
David Arnold (blaggacao) | my nix profile is not loaded on a non-tty shell... | 04:52:28 |
David Arnold (blaggacao) | the only blocker so far. | 04:52:36 |