about summary refs log tree commit diff
path: root/modules/programs/gpg-agent/test.nix
diff options
context:
space:
mode:
Diffstat (limited to 'modules/programs/gpg-agent/test.nix')
-rw-r--r--modules/programs/gpg-agent/test.nix11
1 files changed, 11 insertions, 0 deletions
diff --git a/modules/programs/gpg-agent/test.nix b/modules/programs/gpg-agent/test.nix
new file mode 100644
index 00000000..ecfa2737
--- /dev/null
+++ b/modules/programs/gpg-agent/test.nix
@@ -0,0 +1,11 @@
+let
+  pkgs = import <nixpkgs> {};
+in
+
+  pkgs.runCommand "gpg-agent-wrapper" {
+    buildInputs = with pkgs; [ pkgconfig systemd ];
+  } ''
+    cc -Wall -shared -std=c11 \
+      $(pkg-config --cflags --libs libsystemd) \
+      "${./agent-wrapper.c}" -o "$out" -ldl -fPIC
+  ''