oidc-agent: reformat code, fix wrong man page location

This commit is contained in:
xinyangli 2024-09-05 12:13:46 +08:00
parent 233f326a00
commit 57737e22bd
No known key found for this signature in database

View File

@ -1,15 +1,16 @@
{ lib
, stdenv
, fetchFromGitHub
, curl
, webkitgtk
, libmicrohttpd
, libsecret
, qrencode
, libsodium
, pkg-config
, help2man
, nix-update-script
{
lib,
stdenv,
fetchFromGitHub,
curl,
webkitgtk,
libmicrohttpd,
libsecret,
qrencode,
libsodium,
pkg-config,
help2man,
nix-update-script,
}:
stdenv.mkDerivation rec {
@ -39,14 +40,23 @@ stdenv.mkDerivation rec {
enableParallelBuilding = true;
makeFlags = [ "PREFIX=$(out)" "BIN_PATH=$(out)" "LIB_PATH=$(out)/lib" ];
makeFlags = [
"PREFIX=$(out)"
"BIN_PATH=$(out)"
"PROMPT_BIN_PATH=$(out)"
"LIB_PATH=$(out)/lib"
];
installTargets = [ "install_bin" "install_lib" "install_conf" ];
installTargets = [
"install_bin"
"install_lib"
"install_conf"
];
postFixup = ''
# Override with patched binary to be used by help2man
cp -r $out/bin/* bin
make install_man PREFIX=$out
make install_man PREFIX=$out MAN_PATH=$out/share/man PROMPT_MAN_PATH=$out/share/man
'';
passthru.updateScript = nix-update-script { };
@ -58,4 +68,3 @@ stdenv.mkDerivation rec {
license = licenses.mit;
};
}