1 { stdenv, unsecvars, linuxHeaders, sourceProg, debug ? false }:
3 # $ nix-build -E 'with import <nixpkgs> {}; pkgs.callPackage ./wrapper.nix { sourceProg = "${pkgs.hello}/bin/hello"; debug = true; }'
5 name = "security-wrapper-${baseNameOf sourceProg}";
6 buildInputs = [ linuxHeaders ];
9 ''-DSOURCE_PROG="${sourceProg}"''
18 $CC $CFLAGS ${./wrapper.c} -I${unsecvars} -o $out/bin/security-wrapper