summary refs log tree commit diff
path: root/flake.nix
diff options
context:
space:
mode:
Diffstat (limited to 'flake.nix')
-rw-r--r--flake.nix28
1 files changed, 27 insertions, 1 deletions
diff --git a/flake.nix b/flake.nix
index d81cb77..3bda2c1 100644
--- a/flake.nix
+++ b/flake.nix
@@ -14,6 +14,32 @@
       nixpkgsFor = forAllSystems (system: import nixpkgs { inherit system; });
   in {
     packages = forAllSystems (system: let pkgs = nixpkgsFor.${system}; in rec {
+      default = pollyana;
+
+      pollyana = pkgs.python3Packages.buildPythonPackage rec {
+        pname = "KayleeVC";
+        version = "0.1.1";
+
+        src = ./src;
+
+        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
+        ]);
+      };
+
       kaylee = pkgs.python3Packages.buildPythonPackage rec {
         pname = "KayleeVC";
         version = "0.1.1";
@@ -26,7 +52,7 @@
         };
 
         patches = [
-          ./data-location.patch
+          ./packages/kaylee-data-location.patch
         ];
 
         nativeBuildInputs = with pkgs; [