summaryrefslogtreecommitdiff
path: root/pkgs.nix
blob: f7a3f55b112f76aba670055632e160ea7e087bd7 (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
rec {

  mkPkgs = src: let

    normalPkgs = (import src) {};

    config = {
      allowUnfree = true;
      packageOverrides = pkgs: {
        nixgl = (import ./nix/nixgl.nix) pkgs;
        ldUtils = (import ./nix/ld-utils.nix) pkgs;
      };
    };

  in pkgsArg: (import src) (
    normalPkgs.lib.attrsets.recursiveUpdate { config = config; } pkgsArg
  );

  stable = mkPkgs (builtins.fetchTarball {
    name = "nixpkgs-2405";
    url = "https://github.com/nixos/nixpkgs/archive/63dacb46bf939521bdc93981b4cbb7ecb58427a0.tar.gz";
    sha256 = "sha256:1lr1h35prqkd1mkmzriwlpvxcb34kmhc9dnr48gkm8hh089hifmx";
  });
}