authenticator: init at 4.0.3
This commit is contained in:
parent
7b3df91236
commit
27d0a91fd4
1952
pkgs/applications/misc/authenticator/767.patch
Normal file
1952
pkgs/applications/misc/authenticator/767.patch
Normal file
File diff suppressed because it is too large
Load diff
98
pkgs/applications/misc/authenticator/default.nix
Normal file
98
pkgs/applications/misc/authenticator/default.nix
Normal file
|
@ -0,0 +1,98 @@
|
|||
{ lib
|
||||
, stdenv
|
||||
, fetchFromGitLab
|
||||
, fetchpatch
|
||||
, appstream-glib
|
||||
, desktop-file-utils
|
||||
, meson
|
||||
, ninja
|
||||
, pkg-config
|
||||
, python3
|
||||
, rustPlatform
|
||||
, wrapGAppsHook
|
||||
, gdk-pixbuf
|
||||
, glib
|
||||
, gst_all_1
|
||||
, gtk4
|
||||
, libadwaita
|
||||
, openssl
|
||||
, sqlite
|
||||
, wayland
|
||||
, zbar
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "authenticator";
|
||||
version = "4.0.3";
|
||||
|
||||
src = fetchFromGitLab {
|
||||
domain = "gitlab.gnome.org";
|
||||
owner = "World";
|
||||
repo = "Authenticator";
|
||||
rev = version;
|
||||
sha256 = "0fvs76f3fm5pxn7wg6sjbqpgip5w2j7xrh4siasdcl2bx6vsld8b";
|
||||
};
|
||||
|
||||
cargoDeps = rustPlatform.fetchCargoTarball {
|
||||
inherit src;
|
||||
name = "${pname}-${version}";
|
||||
sha256 = "1s97jyszxf24rs3ni11phiyvmp1wm8sicb0rh1jgwz4bn1cnakx4";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
patchShebangs build-aux
|
||||
'';
|
||||
|
||||
nativeBuildInputs = [
|
||||
appstream-glib
|
||||
desktop-file-utils
|
||||
meson
|
||||
ninja
|
||||
pkg-config
|
||||
python3
|
||||
wrapGAppsHook
|
||||
] ++ (with rustPlatform; [
|
||||
cargoSetupHook
|
||||
rust.cargo
|
||||
rust.rustc
|
||||
]);
|
||||
|
||||
buildInputs = [
|
||||
gdk-pixbuf
|
||||
glib
|
||||
gst_all_1.gstreamer
|
||||
gst_all_1.gst-plugins-base
|
||||
# See https://gitlab.gnome.org/World/Authenticator/-/blob/master/build-aux/com.belmoussaoui.Authenticator.Devel.json
|
||||
(gst_all_1.gst-plugins-good.overrideAttrs (old: {
|
||||
patches = [
|
||||
#(fetchpatch {
|
||||
# url = "https://gitlab.gnome.org/World/Authenticator/-/raw/master/build-aux/767.patch";
|
||||
# sha256 = "1g3zkfs248p8wvrvplwrl38vylqsafv6vapfr1nj5kg7ndfrgilf";
|
||||
#})
|
||||
./767.patch
|
||||
];
|
||||
mesonFlags = old.mesonFlags ++ [
|
||||
"-Dgtk3=disabled"
|
||||
"-Dgtk4=enabled"
|
||||
"-Dgtk4-experiments=true"
|
||||
];
|
||||
buildInputs = old.buildInputs ++ [
|
||||
gtk4
|
||||
];
|
||||
}))
|
||||
gst_all_1.gst-plugins-bad
|
||||
gtk4
|
||||
libadwaita
|
||||
openssl
|
||||
sqlite
|
||||
wayland
|
||||
zbar
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Two-factor authentication code generator for GNOME";
|
||||
homepage = "https://gitlab.gnome.org/World/Authenticator";
|
||||
license = licenses.gpl3Plus;
|
||||
maintainers = with maintainers; [ dotlambda ];
|
||||
};
|
||||
}
|
|
@ -1077,6 +1077,8 @@ in
|
|||
|
||||
audiowaveform = callPackage ../tools/audio/audiowaveform { };
|
||||
|
||||
authenticator = callPackage ../applications/misc/authenticator { };
|
||||
|
||||
autoflake = callPackage ../development/tools/analysis/autoflake { };
|
||||
|
||||
autospotting = callPackage ../applications/misc/autospotting { };
|
||||
|
|
Loading…
Reference in a new issue