forked from mirrors/nixpkgs
step-ca: Add systemd service file at correct location to get it picked up automatically
This commit is contained in:
parent
53a17d2a44
commit
106b8616f7
|
@ -2,6 +2,7 @@
|
||||||
, lib
|
, lib
|
||||||
, fetchFromGitHub
|
, fetchFromGitHub
|
||||||
, buildGoModule
|
, buildGoModule
|
||||||
|
, coreutils
|
||||||
, pcsclite
|
, pcsclite
|
||||||
, PCSC
|
, PCSC
|
||||||
, pkg-config
|
, pkg-config
|
||||||
|
@ -26,6 +27,14 @@ buildGoModule rec {
|
||||||
lib.optionals (stdenv.isLinux) [ pcsclite ]
|
lib.optionals (stdenv.isLinux) [ pcsclite ]
|
||||||
++ lib.optionals (stdenv.isDarwin) [ PCSC ];
|
++ lib.optionals (stdenv.isDarwin) [ PCSC ];
|
||||||
|
|
||||||
|
postPatch = ''
|
||||||
|
substituteInPlace systemd/step-ca.service --replace "/bin/kill" "${coreutils}/bin/kill"
|
||||||
|
'';
|
||||||
|
|
||||||
|
postInstall = ''
|
||||||
|
install -Dm444 -t $out/lib/systemd/system systemd/step-ca.service
|
||||||
|
'';
|
||||||
|
|
||||||
# Tests fail on darwin with
|
# Tests fail on darwin with
|
||||||
# panic: httptest: failed to listen on a port: listen tcp6 [::1]:0: bind: operation not permitted [recovered]
|
# panic: httptest: failed to listen on a port: listen tcp6 [::1]:0: bind: operation not permitted [recovered]
|
||||||
# probably some sandboxing issue
|
# probably some sandboxing issue
|
||||||
|
|
Loading…
Reference in a new issue