2021-05-03 20:48:10 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitLab
|
|
|
|
, fetchpatch
|
|
|
|
, appstream-glib
|
2022-05-18 14:49:53 +00:00
|
|
|
, clang
|
2021-05-03 20:48:10 +00:00
|
|
|
, desktop-file-utils
|
|
|
|
, meson
|
|
|
|
, ninja
|
|
|
|
, pkg-config
|
|
|
|
, rustPlatform
|
|
|
|
, wrapGAppsHook
|
|
|
|
, gdk-pixbuf
|
|
|
|
, glib
|
|
|
|
, gst_all_1
|
|
|
|
, gtk4
|
|
|
|
, libadwaita
|
2022-05-18 14:49:53 +00:00
|
|
|
, libclang
|
2021-05-03 20:48:10 +00:00
|
|
|
, 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";
|
2022-05-18 14:49:53 +00:00
|
|
|
version = "4.1.1";
|
2021-05-03 20:48:10 +00:00
|
|
|
|
|
|
|
src = fetchFromGitLab {
|
|
|
|
domain = "gitlab.gnome.org";
|
|
|
|
owner = "World";
|
|
|
|
repo = "Authenticator";
|
|
|
|
rev = version;
|
2022-05-18 14:49:53 +00:00
|
|
|
hash = "sha256-wl7wyj0vVDkOB7XKQFOEFzCmffTsrUsaM83fWgZ6tG0=";
|
2021-05-03 20:48:10 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
cargoDeps = rustPlatform.fetchCargoTarball {
|
|
|
|
inherit src;
|
|
|
|
name = "${pname}-${version}";
|
2022-05-18 14:49:53 +00:00
|
|
|
hash = "sha256-3SzemDjLsZUXPPtSlDMBQXQf5P3Sz8caJL73mHRv1js=";
|
2021-05-03 20:48:10 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
appstream-glib
|
2022-05-18 14:49:53 +00:00
|
|
|
clang
|
2021-05-03 20:48:10 +00:00
|
|
|
desktop-file-utils
|
|
|
|
meson
|
|
|
|
ninja
|
|
|
|
pkg-config
|
|
|
|
wrapGAppsHook
|
|
|
|
] ++ (with rustPlatform; [
|
|
|
|
cargoSetupHook
|
|
|
|
rust.cargo
|
|
|
|
rust.rustc
|
|
|
|
]);
|
|
|
|
|
|
|
|
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
|
|
|
LIBCLANG_PATH = "${lib.getLib libclang}/lib";
|
|
|
|
|
|
|
|
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;
|
|
|
|
maintainers = with lib.maintainers; [ dotlambda ];
|
|
|
|
platforms = lib.platforms.linux;
|
2021-05-03 20:48:10 +00:00
|
|
|
};
|
|
|
|
}
|