Unverified Commit 574d4f7f authored by lassulus's avatar lassulus Committed by GitHub
Browse files

oidc-agent: reformat code, fix wrong man page location (#339707)

parents 98a31cdb 57737e22
Loading
Loading
Loading
Loading
+25 −16
Original line number Diff line number Diff line
{ 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;
  };
}