summaryrefslogtreecommitdiff
path: root/default.nix
blob: 2aebc731864a88286b99b16ed36e65338cfa3bc9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
let
  lock = builtins.fromJSON (builtins.readFile ./flake.lock);
in

{
  pkgs ? import nixpkgs {
    config = { };
    overlays = [ ];
    inherit system;
  },
  nixpkgs ? (
    fetchTarball {
      url = "https://github.com/NixOS/nixpkgs/archive/${lock.nodes.nixpkgs.locked.rev}.tar.gz";
      sha256 = lock.nodes.nixpkgs.locked.narHash;
    }
  ),
  system ? builtins.currentSystem,
}:

let
  inherit (pkgs) lib;

  getchpkgs = lib.packagesFromDirectoryRecursive {
    callPackage = lib.callPackageWith (pkgs // getchpkgs);
    directory = ./pkgs;
  };
in

getchpkgs