mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-13 17:23:08 +00:00
5e06b3cb19
This will be deprecated in the next commit.
79 lines
1.4 KiB
Nix
79 lines
1.4 KiB
Nix
{ lib
|
|
, stdenv
|
|
, fetchFromGitLab
|
|
, appstream-glib
|
|
, cargo
|
|
, desktop-file-utils
|
|
, meson
|
|
, ninja
|
|
, pkg-config
|
|
, rustPlatform
|
|
, rustc
|
|
, wrapGAppsHook4
|
|
, gdk-pixbuf
|
|
, glib
|
|
, gst_all_1
|
|
, gtk4
|
|
, libadwaita
|
|
, openssl
|
|
, pipewire
|
|
, sqlite
|
|
, wayland
|
|
, zbar
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "authenticator";
|
|
version = "4.3.0";
|
|
|
|
src = fetchFromGitLab {
|
|
domain = "gitlab.gnome.org";
|
|
owner = "World";
|
|
repo = "Authenticator";
|
|
rev = version;
|
|
hash = "sha256-WR5gXGry4wti2M4D/IQvwI7OSak1p+O+XAhr01hdv2Q=";
|
|
};
|
|
|
|
cargoDeps = rustPlatform.fetchCargoTarball {
|
|
inherit src;
|
|
name = "${pname}-${version}";
|
|
hash = "sha256-ZVDKTJojblVCbbdtnqcL+UVW1vkmu99AXCbgyCGNHCM=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
appstream-glib
|
|
desktop-file-utils
|
|
meson
|
|
ninja
|
|
pkg-config
|
|
wrapGAppsHook4
|
|
rustPlatform.cargoSetupHook
|
|
cargo
|
|
rustc
|
|
rustPlatform.bindgenHook
|
|
];
|
|
|
|
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
|
|
pipewire
|
|
sqlite
|
|
wayland
|
|
zbar
|
|
];
|
|
|
|
meta = {
|
|
description = "Two-factor authentication code generator for GNOME";
|
|
homepage = "https://gitlab.gnome.org/World/Authenticator";
|
|
license = lib.licenses.gpl3Plus;
|
|
maintainers = with lib.maintainers; [ austinbutler ];
|
|
platforms = lib.platforms.linux;
|
|
};
|
|
}
|