2021-05-02 18:23:40 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitLab
|
|
|
|
, appstream-glib
|
2023-05-12 14:17:16 +00:00
|
|
|
, cargo
|
2021-05-02 18:23:40 +00:00
|
|
|
, desktop-file-utils
|
|
|
|
, meson
|
|
|
|
, ninja
|
|
|
|
, pkg-config
|
|
|
|
, rustPlatform
|
2023-05-12 14:17:16 +00:00
|
|
|
, rustc
|
2022-05-18 05:17:43 +00:00
|
|
|
, wrapGAppsHook4
|
2021-05-02 18:23:40 +00:00
|
|
|
, gdk-pixbuf
|
|
|
|
, glib
|
|
|
|
, gst_all_1
|
|
|
|
, gtk4
|
|
|
|
, libadwaita
|
|
|
|
, openssl
|
2022-04-26 04:05:16 +00:00
|
|
|
, pipewire
|
2021-05-02 18:23:40 +00:00
|
|
|
, sqlite
|
|
|
|
, wayland
|
|
|
|
, zbar
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "authenticator";
|
2024-01-11 21:10:44 +00:00
|
|
|
version = "4.4.0";
|
2021-05-02 18:23:40 +00:00
|
|
|
|
|
|
|
src = fetchFromGitLab {
|
|
|
|
domain = "gitlab.gnome.org";
|
|
|
|
owner = "World";
|
|
|
|
repo = "Authenticator";
|
|
|
|
rev = version;
|
2024-01-11 21:10:44 +00:00
|
|
|
hash = "sha256-LNYhUDV5nM46qx29xXE6aCEdBo7VnwT61YgAW0ZXW30=";
|
2021-05-02 18:23:40 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
cargoDeps = rustPlatform.fetchCargoTarball {
|
|
|
|
inherit src;
|
|
|
|
name = "${pname}-${version}";
|
2024-01-11 21:10:44 +00:00
|
|
|
hash = "sha256-ntkKH4P3Ui2NZSVy87hGAsRA1GDRwoK9UnA/nFjyLnA=";
|
2021-05-02 18:23:40 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
appstream-glib
|
|
|
|
desktop-file-utils
|
|
|
|
meson
|
|
|
|
ninja
|
|
|
|
pkg-config
|
2022-05-18 05:17:43 +00:00
|
|
|
wrapGAppsHook4
|
2023-05-12 14:17:16 +00:00
|
|
|
rustPlatform.cargoSetupHook
|
|
|
|
cargo
|
|
|
|
rustc
|
|
|
|
rustPlatform.bindgenHook
|
|
|
|
];
|
2021-05-02 18:23:40 +00:00
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
gdk-pixbuf
|
|
|
|
glib
|
|
|
|
gst_all_1.gstreamer
|
|
|
|
gst_all_1.gst-plugins-base
|
2021-05-03 10:27:54 +00:00
|
|
|
(gst_all_1.gst-plugins-bad.override { enableZbar = true; })
|
2021-05-02 18:23:40 +00:00
|
|
|
gtk4
|
|
|
|
libadwaita
|
|
|
|
openssl
|
2022-04-26 04:05:16 +00:00
|
|
|
pipewire
|
2021-05-02 18:23:40 +00:00
|
|
|
sqlite
|
|
|
|
wayland
|
|
|
|
zbar
|
|
|
|
];
|
|
|
|
|
2022-04-26 04:05:16 +00:00
|
|
|
meta = {
|
2021-05-02 18:23:40 +00:00
|
|
|
description = "Two-factor authentication code generator for GNOME";
|
2024-03-19 02:14:51 +00:00
|
|
|
mainProgram = "authenticator";
|
2021-05-02 18:23:40 +00:00
|
|
|
homepage = "https://gitlab.gnome.org/World/Authenticator";
|
2022-04-26 04:05:16 +00:00
|
|
|
license = lib.licenses.gpl3Plus;
|
2023-01-22 02:03:43 +00:00
|
|
|
maintainers = with lib.maintainers; [ austinbutler ];
|
2022-04-26 04:05:16 +00:00
|
|
|
platforms = lib.platforms.linux;
|
2021-05-02 18:23:40 +00:00
|
|
|
};
|
|
|
|
}
|