!djTaTBQyWEPRQxrPTb:nixos.org

Nixpkgs Architecture Team

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

You have reached the beginning of time (for this room).


SenderMessageTime
20 Jan 2023
@infinisil:matrix.orginfinisilBold move by me, opened a draft PR for testing CI! https://github.com/NixOS/nixpkgs/pull/21183221:47:44
22 Jan 2023
@growpotkin1:matrix.orggrowpotkin1

The readFileType PR is ready to roll for anyone who has merge permissions.

Rebased, squashed, and ready for lift-off: https://github.com/NixOS/nix/pull/7447

22:19:01
@infinisil:matrix.orginfinisil growpotkin ( Alex Ameen ): Nix PR's can't just be merged by someone randomly :) 22:36:08
@qyliss:fairydust.spaceAlyssa RossThey can by the right someone!22:36:34
@growpotkin1:matrix.orggrowpotkin1 I imagined @roberth but contributors have no way of knowing who has merge permissions. 22:37:21
23 Jan 2023
@infinisil:matrix.orginfinisil @room: The next meeting will take place in about 10 minutes, we'll continue discussing https://github.com/nixpkgs-architecture/simple-package-paths - meeting link - live stream - meeting notes 15:19:48
@infinisil:matrix.orginfinisil Sandro 🐧: Feel free to join, we'll take a look at https://github.com/nixpkgs-architecture/simple-package-paths/issues/30 15:20:36
@growpotkin1:matrix.orggrowpotkin1
{ nixpkgs ? builtins.getFlake "nixpkgs"
, system  ? builtins.currentSystem
, lib     ? nixpkgs.lib
, pkgsFor ? nixpkgs.legacyPackages.${system}
}: let
  keep   = _: v: ( builtins.tryEval ( lib.isDerivation v ) ).success;
  drvs   = lib.filterAttrs keep pkgsFor;
  names  = builtins.attrNames drvs;
  sdirN  = c: n: builtins.substring 0 c ( lib.toLower n );
  shards = c: builtins.groupBy ( sdirN c ) names;
  defPkg = name: {
    name = lib.toLower name;
    value."default.nix" = ''
      { system ? builtins.currentSystem }: let
        nixpkgs = builtins.getFlake "nixpkgs/${nixpkgs.rev}";
        pkgsFor = nixpkgs.legacyPackages.''${system};
      in pkgsFor."${name}"
    '';
  };
  mkShardDir = ns: builtins.listToAttrs ( map defPkg ns );
  self = {
    unit5 = builtins.mapAttrs ( _: mkShardDir ) ( shards 5 );
    unit4 = builtins.mapAttrs ( _: mkShardDir ) ( shards 4 );
    unit3 = builtins.mapAttrs ( _: mkShardDir ) ( shards 3 );
    unit2 = builtins.mapAttrs ( _: mkShardDir ) ( shards 2 );
    unit1 = builtins.mapAttrs ( _: mkShardDir ) ( shards 1 );
    unit  = self.unit4;
  };
in self

16:29:48
@growpotkin1:matrix.orggrowpotkin1https://github.com/aakropotkin/shard-test/blob/main/gen.nix16:29:53
@sandro:supersandro.deSandro
In reply to @infinisil:matrix.org
Sandro 🐧: Feel free to join, we'll take a look at https://github.com/nixpkgs-architecture/simple-package-paths/issues/30
Sorry, that time is really inconvenient for me because I am still at my real job.
16:56:52
@infinisil:matrix.orginfinisilProblem: The tooling (https://github.com/nixpkgs-architecture/nix-spp) currently doesn't distinguish between what is a package and what isn't. It just moves everything, which we said we didn't want22:13:44
@infinisil:matrix.orginfinisilI'll try to implement some package detection, so that the tooling only moves those22:14:17
@infinisil:matrix.orginfinisil Probably using lib.isDerivation 22:14:36

Show newer messages


Back to Room ListRoom Version: 9