depot/pkgs/desktops/deepin/core/dpa-ext-gnomekeyring/default.nix
Luke Granger-Brown 57725ef3ec Squashed 'third_party/nixpkgs/' content from commit 76612b17c0ce
git-subtree-dir: third_party/nixpkgs
git-subtree-split: 76612b17c0ce71689921ca12d9ffdc9c23ce40b2
2024-11-10 23:59:47 +00:00

51 lines
1,015 B
Nix

{
stdenv,
lib,
fetchFromGitHub,
cmake,
pkg-config,
libsForQt5,
dtkwidget,
dde-polkit-agent,
qt5integration,
libsecret,
}:
stdenv.mkDerivation rec {
pname = "dpa-ext-gnomekeyring";
version = "6.0.1";
src = fetchFromGitHub {
owner = "linuxdeepin";
repo = pname;
rev = version;
hash = "sha256-SyoahSdGPkWitDek4RD5M2hTR78GFpuijryteKVAx6k=";
};
postPatch = ''
substituteInPlace gnomekeyringextention.cpp \
--replace "/usr/share/dpa-ext-gnomekeyring" "$out/share/dpa-ext-gnomekeyring"
'';
nativeBuildInputs = [
cmake
pkg-config
libsForQt5.qttools
libsForQt5.wrapQtAppsHook
];
buildInputs = [
dtkwidget
dde-polkit-agent
qt5integration
libsecret
];
meta = with lib; {
description = "GNOME keyring extension for dde-polkit-agent";
homepage = "https://github.com/linuxdeepin/dpa-ext-gnomekeyring";
license = licenses.gpl3Plus;
platforms = platforms.linux;
maintainers = teams.deepin.members;
};
}