summary refs log tree commit diff
path: root/flake.nix
diff options
context:
space:
mode:
authorIrene Knapp <ireneista@irenes.space>2025-09-06 16:04:36 -0700
committerIrene Knapp <ireneista@irenes.space>2025-09-06 16:04:36 -0700
commit18e38018cf4cc8f9689c453f5013426e60bf744a (patch)
treeceec00bee2761116a652341ef81bf4ffb7bffa7f /flake.nix
parent7f96b7a15e3d688d8a679f03532b5b89101744ce (diff)
add a nix package for the now-forked pollyana
the contents of the patch against upstream kaylee are now applied to the
pollyanna source; the patch is retained in case it's ever useful to
build upstream

Force-Push: yes
Change-Id: I18df6c5b48ee1e767cff259bd323682c8dd693ff
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; [