AusweisApp2: 1.26.7 -> 2.0.1

This commit is contained in:
Fabian Möller 2023-11-09 14:46:02 +01:00 committed by Yaya
parent 6ed37e8e04
commit cd631134df
5 changed files with 67 additions and 37 deletions

View file

@ -7,11 +7,11 @@ let
in
{
options.programs.ausweisapp = {
enable = mkEnableOption (lib.mdDoc "AusweisApp2");
enable = mkEnableOption (lib.mdDoc "AusweisApp");
openFirewall = mkOption {
description = lib.mdDoc ''
Whether to open the required firewall ports for the Smartphone as Card Reader (SaC) functionality of AusweisApp2.
Whether to open the required firewall ports for the Smartphone as Card Reader (SaC) functionality of AusweisApp.
'';
default = false;
type = lib.types.bool;
@ -19,7 +19,7 @@ in
};
config = mkIf cfg.enable {
environment.systemPackages = with pkgs; [ AusweisApp2 ];
environment.systemPackages = with pkgs; [ ausweisapp ];
networking.firewall.allowedUDPPorts = lib.optionals cfg.openFirewall [ 24727 ];
};
}

View file

@ -0,0 +1,62 @@
{
lib,
stdenv,
fetchFromGitHub,
testers,
cmake,
pkg-config,
wrapQtAppsHook,
pcsclite,
qtscxml,
qtsvg,
qttools,
qtwayland,
qtwebsockets,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "ausweisapp";
version = "2.0.1";
src = fetchFromGitHub {
owner = "Governikus";
repo = "AusweisApp2";
rev = finalAttrs.version;
hash = "sha256-RUjc4KqyKZXBW+CMaRhKsbwVzmWw6/QHNK+RpBd7Gxw=";
};
nativeBuildInputs = [
cmake
pkg-config
wrapQtAppsHook
];
# The build scripts copy the entire translations directory from Qt
# which ends up being read-only because it's in the store.
preBuild = ''
chmod +w resources/translations
'';
buildInputs = [
pcsclite
qtscxml
qtsvg
qttools
qtwayland
qtwebsockets
];
passthru.tests.version = testers.testVersion {
package = finalAttrs.finalPackage;
command = "QT_QPA_PLATFORM=offscreen ${finalAttrs.meta.mainProgram} --version";
};
meta = {
description = "Official authentication app for German ID card and residence permit";
downloadPage = "https://github.com/Governikus/AusweisApp2/releases";
homepage = "https://www.ausweisapp.bund.de/open-source-software";
license = lib.licenses.eupl12;
mainProgram = "AusweisApp";
maintainers = with lib.maintainers; [b4dm4n];
platforms = lib.platforms.linux;
};
})

View file

@ -1,33 +0,0 @@
{ lib, mkDerivation, fetchFromGitHub, cmake, pkg-config, pcsclite, qtsvg, qttools, qtwebsockets
, qtquickcontrols2, qtgraphicaleffects }:
mkDerivation rec {
pname = "AusweisApp2";
version = "1.26.7";
src = fetchFromGitHub {
owner = "Governikus";
repo = "AusweisApp2";
rev = version;
hash = "sha256-i9hfmMp0pEqtIeKc1mcyINXetzD/33aM0utL8nomVcg=";
};
nativeBuildInputs = [ cmake pkg-config ];
# The build scripts copy the entire translations directory from Qt
# which ends up being read-only because it's in the store.
preBuild = ''
chmod +w resources/translations
'';
buildInputs = [ qtsvg qttools qtwebsockets qtquickcontrols2 qtgraphicaleffects pcsclite ];
meta = with lib; {
description = "Authentication software for the German ID card";
downloadPage = "https://github.com/Governikus/AusweisApp2/releases";
homepage = "https://www.ausweisapp.bund.de/ausweisapp2/";
license = licenses.eupl12;
maintainers = with maintainers; [ b4dm4n ];
platforms = platforms.linux;
};
}

View file

@ -55,6 +55,7 @@ mapAliases ({
### A ###
AusweisApp2 = ausweisapp; # Added 2023-11-08
a4term = a4; # Added 2023-10-06
aether = throw "aether has been removed from nixpkgs; upstream unmaintained, security issues"; # Added 2023-10-03
airfield = throw "airfield has been removed due to being unmaintained"; # Added 2023-05-19

View file

@ -30550,7 +30550,7 @@ with pkgs;
autopanosiftc = callPackage ../applications/graphics/autopanosiftc { };
AusweisApp2 = libsForQt5.callPackage ../applications/misc/ausweisapp2 { };
ausweisapp = qt6Packages.callPackage ../applications/misc/ausweisapp { };
avidemux = libsForQt5.callPackage ../applications/video/avidemux { };