mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-27 16:15:05 +00:00
54 lines
1.1 KiB
Nix
54 lines
1.1 KiB
Nix
{ lib
|
|
, mkDerivation
|
|
, fetchFromSourcehut
|
|
, cmake
|
|
, extra-cmake-modules
|
|
, pkg-config
|
|
, kirigami2
|
|
, libdeltachat
|
|
, qtbase
|
|
, qtimageformats
|
|
, qtmultimedia
|
|
, qtwebengine
|
|
}:
|
|
|
|
mkDerivation rec {
|
|
pname = "kdeltachat";
|
|
version = "unstable-2022-01-02";
|
|
|
|
src = fetchFromSourcehut {
|
|
owner = "~link2xt";
|
|
repo = "kdeltachat";
|
|
rev = "ec545c8208c870c44312558f91c79e6ffce4444e";
|
|
hash = "sha256-s/dJ2ahdUK7ODKsna+tl81e+VQLkCAELb/iEXf9WlIM=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
cmake
|
|
extra-cmake-modules
|
|
pkg-config
|
|
];
|
|
|
|
buildInputs = [
|
|
kirigami2
|
|
libdeltachat
|
|
qtimageformats
|
|
qtmultimedia
|
|
qtwebengine
|
|
];
|
|
|
|
# needed for qmlplugindump to work
|
|
QT_PLUGIN_PATH = "${qtbase.bin}/${qtbase.qtPluginPrefix}";
|
|
QML2_IMPORT_PATH = lib.concatMapStringsSep ":"
|
|
(lib: "${lib}/${qtbase.qtQmlPrefix}")
|
|
[ kirigami2 qtmultimedia ];
|
|
|
|
meta = with lib; {
|
|
description = "Delta Chat client using Kirigami framework";
|
|
homepage = "https://git.sr.ht/~link2xt/kdeltachat";
|
|
license = licenses.gpl3Plus;
|
|
maintainers = with maintainers; [ dotlambda ];
|
|
platforms = platforms.linux;
|
|
};
|
|
}
|