From ebccb33b4eb60a07e667332665181ba9ad352615 Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Wed, 21 Oct 2026 15:05:50 +0200 Subject: ... --- overlays/keepassxc/default.nix | 113 ----------------------------------------- 1 file changed, 113 deletions(-) delete mode 100644 overlays/keepassxc/default.nix (limited to 'overlays/keepassxc/default.nix') diff --git a/overlays/keepassxc/default.nix b/overlays/keepassxc/default.nix deleted file mode 100644 index 325f1aa4..00000000 --- a/overlays/keepassxc/default.nix +++ /dev/null @@ -1,113 +0,0 @@ -{ final, prev, flakeInputs, ... }: -{ - keepassxc = final.stdenv.mkDerivation (finalAttrs: { - pname = "keepassxc"; - version = "2.8.0-beta1"; - - src = final.fetchFromGitHub { - owner = "keepassxreboot"; - repo = "keepassxc"; - tag = finalAttrs.version; - hash = "sha256-fksThYmGZed66zxGDxlS2SHQzJYRf+T9AuZPbaNZV5Y="; - }; - - env = - final.lib.optionalAttrs final.stdenv.cc.isClang { - NIX_CFLAGS_COMPILE = toString [ - "-Wno-old-style-cast" - "-Wno-error" - "-D__BIG_ENDIAN__=${if final.stdenv.hostPlatform.isBigEndian then "1" else "0"}" - ]; - }; - - # Upstream develops against a build of PCSC from Xcode. - # The types are incompatible with nixpkgs pcsclite. - # https://github.com/NixOS/nixpkgs/issues/520227 - postPatch = '' - substituteInPlace src/keys/drivers/YubiKeyInterfacePCSC.cpp \ - --replace-fail "typedef uint32_t RETVAL;" "typedef int32_t RETVAL;" - ''; - - cmakeFlags = [ - (final.lib.cmakeFeature "KEEPASSXC_BUILD_TYPE" "Release") - (final.lib.cmakeBool "WITH_GUI_TESTS" true) - (final.lib.cmakeBool "WITH_XC_UPDATECHECK" false) - (final.lib.cmakeBool "WITH_XC_X11" false) - (final.lib.cmakeBool "WITH_XC_BROWSER" true) - (final.lib.cmakeBool "WITH_XC_BROWSER_PASSKEYS" true) - (final.lib.cmakeBool "WITH_XC_KEESHARE" true) - (final.lib.cmakeBool "WITH_XC_NETWORKING" true) - (final.lib.cmakeBool "WITH_XC_SSHAGENT" true) - (final.lib.cmakeBool "WITH_XC_FDOSECRETS" true) - (final.lib.cmakeBool "WITH_XC_YUBIKEY" true) - ]; - - doCheck = true; - checkPhase = - let - disabledTests = final.lib.concatStringsSep "|" ( - [ - # flaky - "testcli" - "testgui" - ] - ); - in - '' - runHook preCheck - - export LC_ALL="en_US.UTF-8" - export QT_QPA_PLATFORM=offscreen - export QT_PLUGIN_PATH="${final.qt6.qtbase}/${final.qt6.qtbase.qtPluginPrefix}" - - make test ARGS+="-E '${disabledTests}' --output-on-failure" - - runHook postCheck - ''; - - nativeBuildInputs = with final; [ - asciidoctor - cmake - qt6.wrapQtAppsHook - qt6.qttools - pkg-config - wrapGAppsHook3 - ]; - - dontWrapGApps = true; - preFixup = '' - qtWrapperArgs+=("''${gappsWrapperArgs[@]}") - ''; - - postInstall = final.lib.concatLines [ - # See https://github.com/keepassxreboot/keepassxc/blob/cd7a53abbbb81e468efb33eb56eefc12739969b8/src/browser/NativeMessageInstaller.cpp#L317 - # See https://github.com/keepassxreboot/keepassxc/blob/cd7a53abbbb81e468efb33eb56eefc12739969b8/utils/keepassxc-snap-helper.sh#L48-L58 - '' - mkdir -p "$out/lib/mozilla/native-messaging-hosts" - substituteAll "${toString (flakeInputs.nixpkgs) + "/pkgs/by-name/ke/keepassxc/firefox-native-messaging-host.json"}" "$out/lib/mozilla/native-messaging-hosts/org.keepassxc.keepassxc_browser.json" - - mkdir -p "$out/etc/chromium/native-messaging-hosts" - substituteAll "${toString (flakeInputs.nixpkgs) + "/pkgs/by-name/ke/keepassxc/chromium-native-messaging-host.json"}" "$out/etc/chromium/native-messaging-hosts/org.keepassxc.keepassxc_browser.json" - '' - ]; - - buildInputs = with final; [ - botan3 - curl - libxi - libxtst - libargon2 - qt6.qtbase - qt6.qtsvg - minizip - pcsclite - qrencode - readline - zlib - libusb1 - keyutils - ]; - - meta.mainProgram = "keepassxc"; - }); -} -- cgit v1.2.3