summaryrefslogtreecommitdiff
path: root/pkgs.nix
blob: 7cc43d8b34e5b765388730c5718769ae586cff2c (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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
rec {

  mkPkgs = src: let

    normalPkgs = (import src) {};

    config = {
      allowUnfree = true;
      packageOverrides = pkgs: {

        nixgl = let

          src = builtins.fetchTarball {
            name = "nixgl-unstable";
            url = "https://github.com/guibou/nixGL/archive/7165ffbccbd2cf4379b6cd6d2edd1620a427e5ae.tar.gz";
            sha256 = "1wc85xqnq2wb008y9acb29jbfkc242m9697g2b8j6q3yqmfhrks1";
          };

          nixgl = (import src) {
            inherit pkgs;
            enable32bits = false;
          };

        in nixgl.auto.nixGLDefault;

      };
    };

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

  stable = mkPkgs (builtins.fetchTarball {
    name = "nixpkgs-2105";
    url = "https://github.com/nixos/nixpkgs/archive/7e9b0dff974c89e070da1ad85713ff3c20b0ca97.tar.gz";
    sha256 = "1ckzhh24mgz6jd1xhfgx0i9mijk6xjqxwsshnvq789xsavrmsc36";
  });

  stable2305 = mkPkgs (builtins.fetchTarball {
    name = "nixpkgs-2305";
    url = "https://github.com/nixos/nixpkgs/archive/4ecab3273592f27479a583fb6d975d4aba3486fe.tar.gz";
    sha256 = "sha256:10wn0l08j9lgqcw8177nh2ljrnxdrpri7bp0g7nvrsn9rkawvlbf";
  });

  edge = mkPkgs (builtins.fetchTarball {
    name = "nixpkgs-edge";
    url = "https://github.com/nixos/nixpkgs/archive/3ae06c380004ab1bb4146c986f38ed75ac3ec677.tar.gz";
    sha256 = "sha256:0x4wjqa78ik21kja5lcy6421jjg7m7pzh2vz582rv646l69a94cl";
  });
}