mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-07-22 08:30:57 +00:00
oidcwarden: init at 2026.4.2-1
This commit is contained in:
47
pkgs/by-name/oi/oidcwarden/package.nix
Normal file
47
pkgs/by-name/oi/oidcwarden/package.nix
Normal file
@@ -0,0 +1,47 @@
|
||||
{
|
||||
lib,
|
||||
rustPlatform,
|
||||
fetchFromGitHub,
|
||||
pkg-config,
|
||||
openssl,
|
||||
libiconv,
|
||||
stdenv,
|
||||
dbBackend ? "sqlite",
|
||||
libmysqlclient,
|
||||
libpq,
|
||||
}:
|
||||
|
||||
rustPlatform.buildRustPackage (finalAttrs: {
|
||||
pname = "oidcwarden";
|
||||
version = "2026.4.2-1";
|
||||
__structuredAttrs = true;
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "Timshel";
|
||||
repo = "OIDCWarden";
|
||||
tag = "v${finalAttrs.version}";
|
||||
hash = "sha256-tHacn9RtoByWpqnWX2/gWwODDSeXJa4mk4MfxHiiJ8A=";
|
||||
};
|
||||
|
||||
cargoHash = "sha256-eGsYNaLYRCrTRaoyfhxnoeA2ytYeyGGvHnAbpEIayzs=";
|
||||
|
||||
nativeBuildInputs = [ pkg-config ];
|
||||
|
||||
buildInputs = [
|
||||
openssl
|
||||
]
|
||||
++ lib.optionals stdenv.hostPlatform.isDarwin [ libiconv ]
|
||||
++ lib.optional (dbBackend == "mysql") libmysqlclient
|
||||
++ lib.optional (dbBackend == "postgresql") libpq;
|
||||
|
||||
buildFeatures = dbBackend;
|
||||
|
||||
meta = {
|
||||
description = "Unofficial Bitwarden-compatible server with OpenID Connect support";
|
||||
homepage = "https://github.com/Timshel/OIDCWarden";
|
||||
changelog = "https://github.com/Timshel/OIDCWarden/releases/tag/v${finalAttrs.src.tag}";
|
||||
license = lib.licenses.agpl3Only;
|
||||
maintainers = with lib.maintainers; [ DerGrumpf ];
|
||||
mainProgram = "oidcwarden";
|
||||
};
|
||||
})
|
||||
Reference in New Issue
Block a user