Merge pull request #320214 from xinyangli/oidc-agent

oidc-agent: init at 5.1.0
This commit is contained in:
Sandro
2024-07-17 19:17:11 +02:00
committed by GitHub
2 changed files with 68 additions and 0 deletions
+7
View File
@@ -22023,6 +22023,13 @@
github = "peterablehmann";
githubId = 36541313;
};
xinyangli = {
email = "lixinyang411@gmail.com";
matrix = "@me:xinyang.life";
github = "xinyangli";
githubId = 16359093;
name = "Xinyang Li";
};
xiorcale = {
email = "quentin.vaucher@pm.me";
github = "xiorcale";
+61
View File
@@ -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;
};
}