-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathflake.nix
More file actions
45 lines (40 loc) · 1.1 KB
/
flake.nix
File metadata and controls
45 lines (40 loc) · 1.1 KB
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
{
description = "github:moeru-ai/ortts";
inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
outputs =
{ nixpkgs, ... }:
let
systems = [
"x86_64-linux"
"x86_64-darwin"
"aarch64-linux"
"aarch64-darwin"
];
forAllSystems = f: nixpkgs.lib.genAttrs systems (system: f system);
in
{
devShells = forAllSystems (
system:
let
pkgs = import nixpkgs { inherit system; };
in
{
default = pkgs.mkShell {
nativeBuildInputs = with pkgs; [
# TODO: tls-rustls
# https://github.com/pykeio/ort/issues/436
pkg-config
openssl
libiconv
clang # espeak-rs
cmake # espeak-rs
];
OPENSSL_DIR = pkgs.openssl.dev;
OPENSSL_INCLUDE_DIR = "${pkgs.openssl.dev}/include";
OPENSSL_LIB_DIR = "${pkgs.openssl.out}/lib";
LIBCLANG_PATH = pkgs.lib.makeLibraryPath [ pkgs.llvmPackages.libclang.lib ]; # espeak-rs
};
}
);
};
}