-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathflake.nix
41 lines (39 loc) · 1.08 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
{
description = "Meetings transcripts....";
inputs.nixpkgs-unstable.url = "nixpkgs-unstable";
outputs = {
self,
nixpkgs-unstable,
}: let
lib = nixpkgs-unstable.lib;
forAllSystems = genExpr: lib.genAttrs lib.systems.flakeExposed genExpr;
nixpkgsFor = forAllSystems (system: import nixpkgs-unstable {inherit system;});
version = lib.substring 0 8 self.lastModifiedDate;
in {
formatter = forAllSystems (system: nixpkgsFor.${system}.alejandra);
packages = forAllSystems (system: let
pkgs = nixpkgsFor.${system};
point = pkgs.callPackage ({
stdenvNoCC,
python3,
}:
stdenvNoCC.mkDerivation {
name = "point";
buildInputs = [(python3.withPackages (p: [p.faster-whisper p.flask]))];
}) {};
in {
inherit point;
default = point;
point-docker = pkgs.dockerTools.buildLayeredImage {
name = "point";
tag = "latest";
created = version;
contents = [point];
# TODO
config = {
# Cmd = ["${}"];
};
};
});
};
}