about summary refs log tree commit diff
path: root/modules/programs/gpg-agent/test.nix
blob: ecfa273799250bcda074946a323ca7f91b8b9aa4 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
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
  ''