File tree Expand file tree Collapse file tree 2 files changed +43
-86
lines changed
Expand file tree Collapse file tree 2 files changed +43
-86
lines changed Original file line number Diff line number Diff line change 1717
1818 buildInputs = [ pkgs . pam ] ;
1919
20- # Environment variables - choose ONE approach
21- CGO_ENABLED = "1" ;
22-
23- # Build flags
24- ldflags = [
25- "-s"
26- "-w"
27- ] ;
20+ buildPhase = ''
21+ runHook preBuild
22+ go build -buildmode=c-shared -o pam_jit_pg.so
23+ runHook postBuild
24+ '' ;
25+
26+ installPhase = ''
27+ runHook preInstall
28+ mkdir -p $out/lib/security
29+ cp pam_jit_pg.so $out/lib/security/
30+ runHook postInstall
31+ '' ;
2832 } ;
2933in
3034
@@ -38,6 +42,6 @@ pkgs.stdenv.mkDerivation {
3842
3943 installPhase = ''
4044 mkdir -p $out/lib/security/
41- cp ${ upstream-gatekeeper } /bin/jit-db-gatekeeper $out/lib/security/pam_jit_pg.so
45+ cp ${ upstream-gatekeeper } /lib/security/pam_jit_pg.so $out/lib/security/pam_jit_pg.so
4246 '' ;
4347}
You can’t perform that action at this time.
0 commit comments