| 20 Jan 2023 |
infinisil | Bold move by me, opened a draft PR for testing CI! https://github.com/NixOS/nixpkgs/pull/211832 | 21:47:44 |
| 22 Jan 2023 |
growpotkin1 | 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 | growpotkin ( Alex Ameen ): Nix PR's can't just be merged by someone randomly :) | 22:36:08 |
Alyssa Ross | They can by the right someone! | 22:36:34 |
growpotkin1 | I imagined @roberth but contributors have no way of knowing who has merge permissions. | 22:37:21 |
| 23 Jan 2023 |
infinisil | @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 | 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 | { 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 | https://github.com/aakropotkin/shard-test/blob/main/gen.nix | 16:29:53 |
Sandro | 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 | Problem: 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 want | 22:13:44 |
infinisil | I'll try to implement some package detection, so that the tooling only moves those | 22:14:17 |
infinisil | Probably using lib.isDerivation | 22:14:36 |