about summary refs log tree commit diff
path: root/users/tazjin/gio-list-apps/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'users/tazjin/gio-list-apps/default.nix')
-rw-r--r--users/tazjin/gio-list-apps/default.nix9
1 files changed, 7 insertions, 2 deletions
diff --git a/users/tazjin/gio-list-apps/default.nix b/users/tazjin/gio-list-apps/default.nix
index 200bf435420d..c63f4dd48786 100644
--- a/users/tazjin/gio-list-apps/default.nix
+++ b/users/tazjin/gio-list-apps/default.nix
@@ -1,9 +1,14 @@
-{ pkgs, lib, ... }:
+{ depot, pkgs, lib, ... }:
 
 pkgs.rustPlatform.buildRustPackage {
   name = "gio-list-apps";
   src = lib.cleanSource ./.;
   cargoLock.lockFile = ./Cargo.lock;
   nativeBuildInputs = [ pkgs.pkg-config ];
-  buildInputs = [ pkgs.gtk3 ];
+  buildInputs = [ pkgs.gtk3 depot.users.tazjin.emacs.emacs ];
+
+  postInstall = ''
+    mkdir -p $out/share/emacs/site-lisp
+    ln -s $out/lib/libgio_list_apps.so $out/share/emacs/site-lisp/gio-list-apps.so
+  '';
 }