-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathflake.nix
49 lines (40 loc) · 1.07 KB
/
flake.nix
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
{
description = "Jordan Isaacs' collection of shells & packages";
inputs = {
nixpkgs.url = "nixpkgs/nixos-unstable";
composer2nix = {
url = "github:svanderburg/composer2nix";
flake = false;
};
};
outputs = {
self,
nixpkgs,
composer2nix,
}: let
# https://zimbatm.com/notes/1000-instances-of-nixpkgs
system = "x86_64-linux";
pkgs = import nixpkgs {
inherit system;
config.allowUnfree = true;
overlays = [
(self: super: {inherit composer2nix;})
];
};
extraPkgs = {
composer2nix = import "${composer2nix}/default.nix" {inherit pkgs system;};
};
jdpkgs = self.packages.${system};
in {
utils = import ./utils {
inherit pkgs jdpkgs;
};
devShells.${system} = import ./shells {
inherit pkgs;
};
#packages.${system} = import ./pkgs { jdpkgs = self.packages.${system}; inherit pkgs; };
packages.${system} = ((import ./pkgs) {} pkgs) // extraPkgs;
#apps.${system} = extraApps;
overlays.default = final: prev: (import ./pkgs) final prev;
};
}