-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathflake.nix
More file actions
36 lines (34 loc) · 1.02 KB
/
Copy pathflake.nix
File metadata and controls
36 lines (34 loc) · 1.02 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
{
description = "TensorSpeak: on-device TTS powered by Inflect Micro/Nano ONNX";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable"; # Or a specific Nixpkgs release
devenv.url = "github:cachix/devenv";
flake-utils.url = "github:numtide/flake-utils";
};
outputs = {
self,
nixpkgs,
devenv,
flake-utils,
}:
flake-utils.lib.eachDefaultSystem (system: let
# The Android SDK is unfree and needs explicit license acceptance. Setting it here
# instantiates nixpkgs once; doing it inside devenv.nix would force a second full
# nixpkgs evaluation on every shell entry (devenv runs with the eval cache off).
pkgs = import nixpkgs {
inherit system;
config = {
allowUnfree = true;
android_sdk.accept_license = true;
};
};
in {
devShells.default = devenv.lib.mkShell {
inherit pkgs;
modules = [
# Import the local devenv.nix configuration
./devenv.nix
];
};
});
}