-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathflake.nix
58 lines (53 loc) · 1.32 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
50
51
52
53
54
55
56
57
58
{
description = "flakeforge";
inputs = {
flake-utils.url = "github:numtide/flake-utils";
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
};
outputs =
{
self,
flake-utils,
nixpkgs,
}:
flake-utils.lib.eachDefaultSystem (
system:
let
pkgs = import nixpkgs {
inherit system;
overlays = [ self.overlay ];
};
in
{
packages = {
docker-image-stream = pkgs.flakeforgeTools.streamLayeredImageConf {
name = "bash-stream-layered";
contents = [ pkgs.bashInteractive ];
};
flakeforge = pkgs.flakeforge;
flakeforgeTools = pkgs.flakeforgeTools;
};
defaultPackage = pkgs.flakeforge;
}
)
// {
nixosModules = rec {
flakeforge = import ./nixos { inherit (self) overlay; };
default = flakeforge;
};
overlay = self: super: {
flakeforge =
with super.python3Packages;
buildPythonApplication {
pname = "flakeforge";
version = "0.0.1";
src = ./src;
propagatedBuildInputs = [
starlette
uvicorn
];
};
flakeforgeTools = self.callPackage ./flakeforge-tools/default.nix { };
};
};
}