!djTaTBQyWEPRQxrPTb:nixos.org

Nixpkgs Architecture Team

228 Members
https://github.com/nixpkgs-architecture, weekly public meetings on Wednesday 15:00-16:00 UTC at https://meet.jit.si/nixpkgs-architecture53 Servers

Load older messages


SenderMessageTime
3 Oct 2023
@infinisil:matrix.orginfinisilHere's an example of ofborg's performance report: https://github.com/NixOS/nixpkgs/pull/258804/checks?check_run_id=1735659300916:38:34
@roberthensing:matrix.orgRobert Hensing (roberth) ofborg just renders NIX_SHOW_STATS=1, but is not a serious benchmarking tool 16:39:03
@hsngrmpf:matrix.orgDavHauConcerning the github issue, should I open one on nixpkgs-architecture? I could also open a WIP PR on nixpkgs, but the thing is based on another WIP branch of robert, therfore not sure.16:39:44
@roberthensing:matrix.orgRobert Hensing (roberth)

WIP

That PR might stall for a while until we figure out how to communicate options and other metadata like checks (TBD, infinisil) through all the types

16:41:07
@roberthensing:matrix.orgRobert Hensing (roberth) *

WIP

That PR might stall for a while until we figure out how to communicate options and other metadata like checks (TBD, infinisil) through all the composite types

16:41:18
@roberthensing:matrix.orgRobert Hensing (roberth)It's fine to include those commits in your PR. It's a point in time kind of thing anyway16:42:36
@pederbs:pvv.ntnu.nopbsds changed their profile picture.21:04:17
4 Oct 2023
@pederbs:pvv.ntnu.nopbsds changed their profile picture.22:20:24
@infinisil:matrix.orginfinisilSmall but nice: https://github.com/NixOS/nixpkgs/pull/25907422:22:24
5 Oct 2023
@cafkafk:gitter.im@cafkafk:gitter.im joined the room.10:11:38
6 Oct 2023
@infinisil:matrix.orginfinisilMerged it myself, it's small enough and I tested it well enough that I felt confident doing that :)03:35:32
9 Oct 2023
@artturin:matrix.orgArtturin infinisil: Lol your pkgs/test/nixpkgs-check-by-name/tests/package-nix-dir/pkgs/by-name/fo/foo/package.nix/default.nix pkgs/test/nixpkgs-check-by-name/tests/symlink-invalid/pkgs/by-name/fo/foo/foo.nix tests cause errors in nixpkgs-lint https://github.com/nix-community/nixpkgs-lint/blob/master/src/find.rs 07:10:19
@artturin:matrix.orgArtturin * infinisil: Lol your pkgs/test/nixpkgs-check-by-name/tests/package-nix-dir/pkgs/by-name/fo/foo/package.nix/default.nix pkgs/test/nixpkgs-check-by-name/tests/symlink-invalid/pkgs/by-name/fo/foo/foo.nix tests cause errors in nixpkgs-lint https://github.com/nix-community/nixpkgs-lint/blob/6af572ac6994d9919bcb54578eb8430bcbf1f6e0/src/find.rs 07:29:33
@artturin:matrix.orgArtturin *

infinisil: Lol your pkgs/test/nixpkgs-check-by-name/tests/package-nix-dir/pkgs/by-name/fo/foo/package.nix/default.nix pkgs/test/nixpkgs-check-by-name/tests/symlink-invalid/pkgs/by-name/fo/foo/foo.nix tests cause errors in nixpkgs-lint https://github.com/nix-community/nixpkgs-lint/blob/6af572ac6994d9919bcb54578eb8430bcbf1f6e0/src/find.rs

fixed https://github.com/nix-community/nixpkgs-lint/commit/f56d5c4efb3bb3cdb2ab46fda8c598105d6e8af1

07:35:04
@infinisil:matrix.orginfinisil
In reply to @artturin:matrix.org

infinisil: Lol your pkgs/test/nixpkgs-check-by-name/tests/package-nix-dir/pkgs/by-name/fo/foo/package.nix/default.nix pkgs/test/nixpkgs-check-by-name/tests/symlink-invalid/pkgs/by-name/fo/foo/foo.nix tests cause errors in nixpkgs-lint https://github.com/nix-community/nixpkgs-lint/blob/6af572ac6994d9919bcb54578eb8430bcbf1f6e0/src/find.rs

fixed https://github.com/nix-community/nixpkgs-lint/commit/f56d5c4efb3bb3cdb2ab46fda8c598105d6e8af1

Haha nice
07:55:42
10 Oct 2023
@cafkafk:gitter.im@cafkafk:gitter.im changed their display name from Christina Sørensen to cafkafk.03:39:06
@cafkafk:gitter.im@cafkafk:gitter.im changed their profile picture.03:39:26
11 Oct 2023
@piegames:matrix.org@piegames:matrix.org
  inherit (callPackage ../desktops/gnome/extensions { })
    gnomeExtensions
    gnome38Extensions
    gnome40Extensions
    gnome41Extensions
    gnome42Extensions
    gnome43Extensions
    gnome44Extensions
    gnome45Extensions
  ;

I find this a bit silly, since I'm simply inheriting all attributes from the attrset. This is noisy, adds churn and is error-prone.

I know that using something like by-name isn't a thing yet for package sets, but why couldn't I just // (callPackage ../desktops/gnome/extensions { }) to the attrset instead? Much simpler and less pain to maintain

14:35:32
@infinisil:matrix.orginfinisil piegames: That would give you infinite recursion, because the attribute names of an overlay now depends on final 14:36:15
@piegames:matrix.org@piegames:matrix.org Ah and also as I've recently learned, the above is sub-optimal in the current Nix interpreter, because it will stupidly re-do the callPackage import for every single attribute 14:36:20
@piegames:matrix.org@piegames:matrix.org
In reply to @infinisil:matrix.org
piegames: That would give you infinite recursion, because the attribute names of an overlay now depends on final
Um, I don't understand that
14:36:38
@infinisil:matrix.orginfinisil piegames: I guess here's a way to show the problem: What if the gnome extensions set defines callPackage = ? 14:40:02
@piegames:matrix.org@piegames:matrix.orgHm, fair. Can we somehow prevent that with some infrastructure? Some helper function which says "import everything from here into our attrset, and make sure to use super.callPackage to avoid infinite recursion"14:42:49
@piegames:matrix.org@piegames:matrix.org On the other hand, shouldn't this still work as long as the package set doesn't define a callPackage? Because stuff is lazy etc. 14:43:28
@piegames:matrix.org@piegames:matrix.orgWell, attribute names are not, but still14:43:39
@infinisil:matrix.orginfinisilActually lazy attribute sets would allow this: https://github.com/NixOS/nix/issues/409014:43:59
@infinisil:matrix.orginfinisil piegames: It can't now whether it defines a callPackage without evaluating it 14:44:25
@tomberek:matrix.orgtomberek lazy attrsets... lazy attsets ... lazy attrsets. Or __getter (https://github.com/NixOS/nix/issues/8187#issuecomment-1501258036) or builtins.mkProxy..... or something 14:45:43
@piegames:matrix.org@piegames:matrix.orgHm, are there any other ways to solve my current problem?14:45:53
@piegames:matrix.org@piegames:matrix.orgHow does by-name work around this?14:46:01

Show newer messages


Back to Room ListRoom Version: 9