diff options
author | xinyangli <lixinyang411@gmail.com> | 2024-06-16 12:57:42 +0800 |
---|---|---|
committer | xinyangli <lixinyang411@gmail.com> | 2024-07-16 20:03:20 +0800 |
commit | fbe054e363f53fea3fc305f19e9b12f7fb9f65cf (patch) | |
tree | c19fb84a9136977c53b4a80e4232b660bf6b77f6 | |
parent | 85304dbe2cf1fc0d9f14c3d76f7840e0db266cd2 (diff) |
oidc-agent: init at 5.1.0
Co-authored-by: Sandro <sandro.jaeckel@gmail.com>
-rw-r--r-- | pkgs/by-name/oi/oidc-agent/package.nix | 61 |
1 files changed, 61 insertions, 0 deletions
diff --git a/pkgs/by-name/oi/oidc-agent/package.nix b/pkgs/by-name/oi/oidc-agent/package.nix new file mode 100644 index 0000000000000..30f144ce9c197 --- /dev/null +++ b/pkgs/by-name/oi/oidc-agent/package.nix @@ -0,0 +1,61 @@ +{ lib +, stdenv +, fetchFromGitHub +, curl +, webkitgtk +, libmicrohttpd +, libsecret +, qrencode +, libsodium +, pkg-config +, help2man +, nix-update-script +}: + +stdenv.mkDerivation rec { + pname = "oidc-agent"; + version = "5.1.0"; + + src = fetchFromGitHub { + owner = "indigo-dc"; + repo = pname; + rev = "v${version}"; + sha256 = "sha256-cOK/rZ/jnyALLuhDM3+qvwwe4Fjkv8diQBkw7NfVo0c="; + }; + + nativeBuildInputs = [ + pkg-config + help2man + ]; + + buildInputs = [ + curl + webkitgtk + libmicrohttpd + libsecret + qrencode + libsodium + ]; + + enableParallelBuilding = true; + + makeFlags = [ "PREFIX=$(out)" "BIN_PATH=$(out)" "LIB_PATH=$(out)/lib" ]; + + 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 + ''; + + passthru.updateScript = nix-update-script { }; + + meta = with lib; { + description = "Manage OpenID Connect tokens on the command line"; + homepage = "https://github.com/indigo-dc/oidc-agent"; + maintainers = with maintainers; [ xinyangli ]; + license = licenses.mit; + }; +} + |