summary refs log tree commit diff
path: root/flake.nix
diff options
context:
space:
mode:
Diffstat (limited to 'flake.nix')
-rw-r--r--flake.nix59
1 files changed, 59 insertions, 0 deletions
diff --git a/flake.nix b/flake.nix
new file mode 100644
index 0000000..d81cb77
--- /dev/null
+++ b/flake.nix
@@ -0,0 +1,59 @@
+{
+  inputs = {
+    nixpkgs = {
+      type = "github";
+      owner = "NixOS";
+      repo = "nixpkgs";
+      ref = "nixos-25.05";
+    };
+  };
+
+  outputs = { self, nixpkgs }:
+  let supportedSystems = [ "aarch64-linux" "x86_64-linux" ];
+      forAllSystems = nixpkgs.lib.genAttrs supportedSystems;
+      nixpkgsFor = forAllSystems (system: import nixpkgs { inherit system; });
+  in {
+    packages = forAllSystems (system: let pkgs = nixpkgsFor.${system}; in rec {
+      kaylee = pkgs.python3Packages.buildPythonPackage rec {
+        pname = "KayleeVC";
+        version = "0.1.1";
+
+        src = pkgs.fetchFromGitHub {
+          owner = "Ratfink";
+          repo = "kaylee";
+          rev = "baeb0e1fa08fb6b21e4a22458de16b4948d1f2d0";
+          hash = "sha256-ghZnmdtXme0g+nsi/dSGxQ6UqGB48lUhYaTSLF94KIo=";
+        };
+
+        patches = [
+          ./data-location.patch
+        ];
+
+        nativeBuildInputs = with pkgs; [
+          gobject-introspection
+          wrapGAppsHook4
+        ];
+
+        propagatedBuildInputs = (with pkgs; [
+          gtk3
+          pocketsphinx.lib
+        ]) ++ (with pkgs.gst_all_1; [
+          gstreamer
+          gst-plugins-base
+          gst-plugins-good
+        ]) ++ (with pkgs.python3Packages; [
+          requests
+          pygobject3
+        ]);
+      };
+    });
+
+    devShells = forAllSystems (system: let pkgs = nixpkgsFor.${system}; in {
+      default = pkgs.mkShell {
+        nativeBuildInputs = with pkgs; [
+        ];
+      };
+    });
+  };
+}
+