Skip to content

Commit

Permalink
packages: use packagesFromDirectoryRecursive
Browse files Browse the repository at this point in the history
instead of own by-name implementation

Signed-off-by: Paul Meyer <[email protected]>
  • Loading branch information
katexochen committed Feb 19, 2024
1 parent cd99b67 commit 0edb15f
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 23 deletions.
2 changes: 1 addition & 1 deletion flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
}: flake-utils.lib.eachDefaultSystem (system:
let
pkgs = import nixpkgs { inherit system; };
lib = pkgs.lib.extend (import ./lib);
inherit (pkgs) lib;
treefmtEval = treefmt-nix.lib.evalModule pkgs ./treefmt.nix;
in
{
Expand Down
20 changes: 0 additions & 20 deletions lib/default.nix

This file was deleted.

6 changes: 4 additions & 2 deletions packages/default.nix
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
{ lib, pkgs }:


let
pkgs' = pkgs // self;
callPackages = lib.callPackagesWith pkgs';
self = lib.by-name pkgs' ./by-name // {
self = (lib.packagesFromDirectoryRecursive {
callPackage = lib.callPackageWith pkgs';
directory = ./by-name;
}) // {
containers = callPackages ./containers.nix { pkgs = pkgs'; };
scripts = callPackages ./scripts.nix { pkgs = pkgs'; };
genpolicy-msft = pkgs.pkgsStatic.callPackage ./by-name/genpolicy-msft/package.nix { };
Expand Down

0 comments on commit 0edb15f

Please sign in to comment.