| 23 Nov 2024 |
infinisil | # Run with `nix-instantiate --eval --strict --json`
let
pkgs = import <nixpkgs> {};
inherit (pkgs) lib;
ifSuccess = value: f:
let
result = builtins.tryEval value;
in
if result.success then
f result.value
else
"<eval failure>";
recurse = path: attrs:
ifSuccess (lib.isDerivation attrs) (isDrv:
if isDrv then
ifSuccess (lib.getVersion attrs) (version:
{
inherit path version;
}
)
else if lib.isAttrs attrs && (attrs.recurseForDerivations or false) then
lib.mapAttrs (n: recurse (path ++ [n])) attrs
else
null
);
mapped = lib.mapAttrs (n: recurse [n]) pkgs;
# WHY does this fail if filterAttrsRecursive is uncommented!?!?
in /*lib.filterAttrsRecursive (path: value: value != null) */mapped
| 14:51:19 |
tfc | please look at:
- https://github.com/NixOS/nixpkgs/pull/358461
| 15:02:16 |
Koen (SynQ) de Jonge | is anyone using those vm's with 40 cpu cores and 128GB of ram an 100GB of nvme disk yet? | 15:20:51 |
Koen (SynQ) de Jonge | I can create more if needed | 15:21:39 |
tfc | https://github.com/NixOS/nixpkgs/pull/358468 | 15:23:31 |
tfc | https://github.com/NixOS/nixpkgs/pull/358469 | 15:28:28 |
tfc | https://github.com/NixOS/nixpkgs/pull/358472 | 15:51:35 |
infinisil | Ivan Mincik (imincik):
{
outputs = { nixpkgs, self }:
let
lib = nixpkgs.lib;
forAllSystems = lib.genAttrs lib.systems.flakeExposed;
recurseByDefault = attrs:
lib.mapAttrs (
if lib.isDerivation attrs then
attrs
else if lib.isAttrs attrs then
lib.recurseIntoAttrs (recurseByDefault attrs)
else
attrs
) attrs;
overlay = self: super: recurseByDefault {
my.florp = self.hello.overrideAttrs (old: {
name = "my-florp";
});
};
in
{
legacyPackages = forAllSystems (system:
nixpkgs.legacyPackages.${system}.extend overlay
);
};
}
| 18:32:17 |
Wheeze_NL | Time for a drink! | 19:53:56 |
Wheeze_NL | Robert Hensing (roberth): are you also joining? | 19:54:23 |
infinisil |  Download 20241123T200103Z.jpg | 20:01:11 |
infinisil | Who's Linus Vettiger? Your laptop is still here! | 20:01:28 |
infinisil | Oh I see, there's still people downstairs | 20:04:35 |
das-g | Those who went for a drink: Did you go to Nelson or Paragraph 11 or somewhere else? | 20:29:56 |
tfc | Paragraph 11 yes | 20:31:46 |
tfc |  Download ima_5f30975.jpeg | 20:31:59 |
Lorenz | Thanks to the organizers for the great event. It has been a long time since I had so much fun and met so many interesting people :) | 20:50:16 |
| 24 Nov 2024 |
infinisil | Haha I'm the only one here at 9am 😂 | 08:13:46 |
Gerd Flaig | Ha! That means nobody can keep you from fixing all the things. 😉 | 08:16:33 |
steveej | i'm participating virtually from the train 😆 currently trying to figure out how to force logseq to evaluate on aarch64-linux, with this override that has worked on 24.05:
(pkgs.logseq.overrideAttrs (_: {
src = lib.mkForce repoFlake.inputs.logseq_0_10_9_aarch64_appimage;
meta.platforms = lib.mkForce [ "aarch64-linux" ];
}))
| 08:18:01 |
steveej | * i'm participating virtually from the train 😆 currently trying to figure out how to force logseq to evaluate on aarch64-linux, with this override that has worked on 24.05:
(pkgs.logseq.overrideAttrs (
attrs:
lib.attrsets.recursiveUpdate attrs (
lib.attrsets.optionalAttrs pkgs.stdenv.isAarch64 {
src = repoFlake.inputs.logseq_0_10_9_aarch64_appimage;
meta.platforms = [ "aarch64-linux" ];
}
)
))
edit: posted the code that actually worked on 24.05
| 08:21:30 |
steveej | for some reason the src override isn't effective and it still (eagerly?) evaluates the selectSystem function in losgeq.nix:
… while calling the 'throw' builtin
at /nix/store/idq1bmwwy9rlkc21hccvx42wlwpxsx1f-source/pkgs/by-name/lo/logseq/package.nix:20:45:
19| inherit (stdenv.hostPlatform) system;
20| selectSystem = attrs: attrs.${system} or (throw "Unsupported system: ${system}");
| ^
21| suffix = selectSystem {
error: Unsupported system: aarch64-linux
| 08:23:21 |
steveej | the issue is that upstream doesn't build the AppImage for aarch64-linux and i'm getting it from a 3rd party (me) in this case | 08:24:36 |
steveej | maybe it's feasible to do a source build? however i'm scared of yarn. here's the dockerfile i use to build the appimage: https://forgejo.www.stefanjunker.de/steveej/infra/src/commit/229b3cb0d39fd8dfe88f3ca4bb8d46f889f1d929/nix/pkgs/logseq/Containerfile | 08:26:49 |
infinisil | https://nixos-modules.nix.みんな/lessons/a-basic-module/lesson/ | 08:49:28 |
@maralorn:maralorn.de | ners: That’s what I was talking about: https://fuglede.github.io/llama.ttf/ | 09:21:27 |
matthewcroughan @ 39c3 (DECT 94667 or 97340 or 67192) | ners: https://github.com/tunnelvr/tunnelvr/commit/de409fa739fd17297c986fe437656d16c21010f6 | 09:24:50 |
Fabio Lenherr | :qa! | 09:25:35 |
matthewcroughan @ 39c3 (DECT 94667 or 97340 or 67192) | ners: https://github.com/NixOS/nixpkgs/pull/358544 | 09:26:48 |
matthewcroughan @ 39c3 (DECT 94667 or 97340 or 67192) | Download 1802.02180v1.pdf | 09:28:06 |