2021-05-03 20:48:10 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitLab
|
|
|
|
, appstream-glib
|
|
|
|
, desktop-file-utils
|
|
|
|
, meson
|
|
|
|
, ninja
|
|
|
|
, pkg-config
|
|
|
|
, rustPlatform
|
2022-06-16 17:23:12 +00:00
|
|
|
, wrapGAppsHook4
|
2021-05-03 20:48:10 +00:00
|
|
|
, gdk-pixbuf
|
|
|
|
, glib
|
|
|
|
, gst_all_1
|
|
|
|
, gtk4
|
|
|
|
, libadwaita
|
|
|
|
, openssl
|
2022-05-18 14:49:53 +00:00
|
|
|
, pipewire
|
2021-05-03 20:48:10 +00:00
|
|
|
, sqlite
|
|
|
|
, wayland
|
|
|
|
, zbar
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "authenticator";
|
2023-04-29 16:46:19 +00:00
|
|
|
version = "4.3.0";
|
2021-05-03 20:48:10 +00:00
|
|
|
|
|
|
|
src = fetchFromGitLab {
|
|
|
|
domain = "gitlab.gnome.org";
|
|
|
|
owner = "World";
|
|
|
|
repo = "Authenticator";
|
|
|
|
rev = version;
|
2023-04-29 16:46:19 +00:00
|
|
|
hash = "sha256-WR5gXGry4wti2M4D/IQvwI7OSak1p+O+XAhr01hdv2Q=";
|
2021-05-03 20:48:10 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
cargoDeps = rustPlatform.fetchCargoTarball {
|
|
|
|
inherit src;
|
|
|
|
name = "${pname}-${version}";
|
2023-04-29 16:46:19 +00:00
|
|
|
hash = "sha256-ZVDKTJojblVCbbdtnqcL+UVW1vkmu99AXCbgyCGNHCM=";
|
2021-05-03 20:48:10 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
appstream-glib
|
|
|
|
desktop-file-utils
|
|
|
|
meson
|
|
|
|
ninja
|
|
|
|
pkg-config
|
2022-06-16 17:23:12 +00:00
|
|
|
wrapGAppsHook4
|
2021-05-03 20:48:10 +00:00
|
|
|
] ++ (with rustPlatform; [
|
|
|
|
cargoSetupHook
|
|
|
|
rust.cargo
|
|
|
|
rust.rustc
|
2022-12-17 10:02:37 +00:00
|
|
|
bindgenHook
|
2021-05-03 20:48:10 +00:00
|
|
|
]);
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
gdk-pixbuf
|
|
|
|
glib
|
|
|
|
gst_all_1.gstreamer
|
|
|
|
gst_all_1.gst-plugins-base
|
|
|
|
(gst_all_1.gst-plugins-bad.override { enableZbar = true; })
|
|
|
|
gtk4
|
|
|
|
libadwaita
|
|
|
|
openssl
|
2022-05-18 14:49:53 +00:00
|
|
|
pipewire
|
2021-05-03 20:48:10 +00:00
|
|
|
sqlite
|
|
|
|
wayland
|
|
|
|
zbar
|
|
|
|
];
|
|
|
|
|
2022-05-18 14:49:53 +00:00
|
|
|
meta = {
|
2021-05-03 20:48:10 +00:00
|
|
|
description = "Two-factor authentication code generator for GNOME";
|
|
|
|
homepage = "https://gitlab.gnome.org/World/Authenticator";
|
2022-05-18 14:49:53 +00:00
|
|
|
license = lib.licenses.gpl3Plus;
|
2023-02-02 18:25:31 +00:00
|
|
|
maintainers = with lib.maintainers; [ austinbutler ];
|
2022-05-18 14:49:53 +00:00
|
|
|
platforms = lib.platforms.linux;
|
2021-05-03 20:48:10 +00:00
|
|
|
};
|
|
|
|
}
|