loadout/pkgs.nix

51 lines
1.4 KiB
Nix
Raw Normal View History

rec {
2017-10-18 00:12:57 +00:00
mkPkgs = src: let
2017-10-18 00:12:57 +00:00
normalPkgs = (import src) {};
2017-10-18 00:12:57 +00:00
config = {
allowUnfree = true;
packageOverrides = pkgs: {
2017-10-18 00:12:57 +00:00
nixgl = let
2017-10-18 00:12:57 +00:00
src = builtins.fetchTarball {
name = "nixgl-unstable";
url = "https://github.com/guibou/nixGL/archive/7165ffbccbd2cf4379b6cd6d2edd1620a427e5ae.tar.gz";
sha256 = "1wc85xqnq2wb008y9acb29jbfkc242m9697g2b8j6q3yqmfhrks1";
};
2017-10-18 00:12:57 +00:00
nixgl = (import src) {
inherit pkgs;
enable32bits = false;
};
2017-10-18 00:12:57 +00:00
in nixgl.auto.nixGLDefault;
2017-10-18 00:12:57 +00:00
};
2017-10-18 00:12:57 +00:00
};
in pkgsArg: (import src) (
2017-10-18 00:12:57 +00:00
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";
});
}