Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .envrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
use flake
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,6 @@ DerivedData/

## Gcc Patch
/*.gcno
transcriber
transcriber

.direnv/
3 changes: 3 additions & 0 deletions Justfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Build the transcribe binary
build:
swiftc -o transcriber transcribe/main.swift
64 changes: 64 additions & 0 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

36 changes: 36 additions & 0 deletions flake.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
{
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-23.11";
flake-parts.url = "github:hercules-ci/flake-parts";
};

outputs = inputs@{ flake-parts, ... }:
flake-parts.lib.mkFlake { inherit inputs; } {
systems = [
"aarch64-darwin"
];
perSystem = { config, pkgs, ... }:
let
# frameworks = pkgs.swift.apple_sdk.frameworks;
frameworks = pkgs.swiftPackages.apple_sdk.frameworks;
transcribe = pkgs.callPackage ./package.nix { };
in
{
packages = {
inherit transcribe;
default = transcribe;
};
devShells.default = pkgs.mkShell {
nativeBuildInputs = with pkgs; [
pkgs.swiftPackages.swift
];
buildInputs = with pkgs; [
just
frameworks.Foundation
frameworks.Speech
frameworks.AVFoundation
];
};
};
};
}