summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlassulus <github@lassul.us>2024-09-20 10:42:34 +0200
committerGitHub <noreply@github.com>2024-09-20 10:42:34 +0200
commit574d4f7f7616c8e25dd9fc3b405525f7f2afe115 (patch)
tree413a3fb055f545b63637c68b7d742f1bef90f61d
parentwordpress: 6.6.1 -> 6.6.2 (#343013) (diff)
parentoidc-agent: reformat code, fix wrong man page location (diff)
downloadnixpkgs-574d4f7f7616c8e25dd9fc3b405525f7f2afe115.tar.gz
oidc-agent: reformat code, fix wrong man page location (#339707)
-rw-r--r--pkgs/by-name/oi/oidc-agent/package.nix41
1 files changed, 25 insertions, 16 deletions
diff --git a/pkgs/by-name/oi/oidc-agent/package.nix b/pkgs/by-name/oi/oidc-agent/package.nix
index 6fd8adbb3db2..6f90b558bac4 100644
--- a/pkgs/by-name/oi/oidc-agent/package.nix
+++ b/pkgs/by-name/oi/oidc-agent/package.nix
@@ -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;
};
}
-