mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-20 19:16:11 +00:00
oidc-agent: reformat code, fix wrong man page location
This commit is contained in:
parent
233f326a00
commit
57737e22bd
@ -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;
|
||||
};
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user