about summary refs log tree commit diff
path: root/pkgs/desktops/gnome/core
diff options
context:
space:
mode:
authorJan Tojnar <jtojnar@gmail.com>2024-06-22 16:46:12 +0200
committerJan Tojnar <jtojnar@gmail.com>2024-07-01 09:35:26 +0200
commit1369411184ce66bf812935ede91f52789252e1e5 (patch)
tree7be2e1410f2f3caf8a88e344c56e4450a053552a /pkgs/desktops/gnome/core
parent71750a5e1d51310c5aa1133b70cef9423d5cde09 (diff)
gnome-keyring: Move from gnome scope to top-level
It is on the way out.
Diffstat (limited to 'pkgs/desktops/gnome/core')
-rw-r--r--pkgs/desktops/gnome/core/gnome-keyring/default.nix109
1 files changed, 0 insertions, 109 deletions
diff --git a/pkgs/desktops/gnome/core/gnome-keyring/default.nix b/pkgs/desktops/gnome/core/gnome-keyring/default.nix
deleted file mode 100644
index d8a455b0b9faa..0000000000000
--- a/pkgs/desktops/gnome/core/gnome-keyring/default.nix
+++ /dev/null
@@ -1,109 +0,0 @@
-{ lib
-, stdenv
-, fetchurl
-, pkg-config
-, dbus
-, libgcrypt
-, pam
-, python3
-, glib
-, libxslt
-, gettext
-, gcr
-, libcap_ng
-, libselinux
-, p11-kit
-, openssh
-, wrapGAppsHook3
-, docbook-xsl-nons
-, docbook_xml_dtd_43
-, gnome
-, useWrappedDaemon ? true
-}:
-
-stdenv.mkDerivation rec {
-  pname = "gnome-keyring";
-  version = "46.1";
-
-  outputs = [ "out" "dev" ];
-
-  src = fetchurl {
-    url = "mirror://gnome/sources/gnome-keyring/${lib.versions.major version}/${pname}-${version}.tar.xz";
-    hash = "sha256-sdOukTL/L4s/JaGQeQiSlo49Cs+VKkh+QPZEqFUM4/Y=";
-  };
-
-  nativeBuildInputs = [
-    pkg-config
-    gettext
-    libxslt
-    docbook-xsl-nons
-    docbook_xml_dtd_43
-    wrapGAppsHook3
-  ];
-
-  buildInputs = [
-    glib
-    libgcrypt
-    pam
-    openssh
-    libcap_ng
-    libselinux
-    gcr
-    p11-kit
-  ];
-
-  nativeCheckInputs = [ dbus python3 ];
-
-  configureFlags = [
-    "--with-pkcs11-config=${placeholder "out"}/etc/pkcs11/" # installation directories
-    "--with-pkcs11-modules=${placeholder "out"}/lib/pkcs11/"
-    # gnome-keyring doesn't build with ssh-agent by default anymore, we need to
-    # switch to using gcr https://github.com/NixOS/nixpkgs/issues/140824
-    "--enable-ssh-agent"
-    # cross compilation requires these paths to be explicitly declared:
-    "LIBGCRYPT_CONFIG=${lib.getExe' (lib.getDev libgcrypt) "libgcrypt-config"}"
-    "SSH_ADD=${lib.getExe' openssh "ssh-add"}"
-    "SSH_AGENT=${lib.getExe' openssh "ssh-agent"}"
-  ];
-
-  # Tends to fail non-deterministically.
-  # - https://github.com/NixOS/nixpkgs/issues/55293
-  # - https://github.com/NixOS/nixpkgs/issues/51121
-  doCheck = false;
-
-  postPatch = ''
-    patchShebangs build
-  '';
-
-  checkPhase = ''
-    export HOME=$(mktemp -d)
-    dbus-run-session \
-      --config-file=${dbus}/share/dbus-1/session.conf \
-      make check
-  '';
-
-  # Use wrapped gnome-keyring-daemon with cap_ipc_lock=ep
-  postFixup = lib.optionalString useWrappedDaemon ''
-    files=($out/etc/xdg/autostart/* $out/share/dbus-1/services/*)
-
-    for file in ''${files[*]}; do
-      substituteInPlace $file \
-        --replace "$out/bin/gnome-keyring-daemon" "/run/wrappers/bin/gnome-keyring-daemon"
-    done
-  '';
-
-  passthru = {
-    updateScript = gnome.updateScript {
-      packageName = "gnome-keyring";
-      attrPath = "gnome.gnome-keyring";
-    };
-  };
-
-  meta = with lib; {
-    description = "Collection of components in GNOME that store secrets, passwords, keys, certificates and make them available to applications";
-    homepage = "https://gitlab.gnome.org/GNOME/gnome-keyring";
-    license = licenses.gpl2;
-    maintainers = teams.gnome.members;
-    platforms = platforms.linux;
-  };
-}