about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/libraries/accounts-qt
diff options
context:
space:
mode:
Diffstat (limited to 'nixpkgs/pkgs/development/libraries/accounts-qt')
-rw-r--r--nixpkgs/pkgs/development/libraries/accounts-qt/default.nix30
1 files changed, 30 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/development/libraries/accounts-qt/default.nix b/nixpkgs/pkgs/development/libraries/accounts-qt/default.nix
new file mode 100644
index 000000000000..a50c92924e9a
--- /dev/null
+++ b/nixpkgs/pkgs/development/libraries/accounts-qt/default.nix
@@ -0,0 +1,30 @@
+{ stdenv, fetchFromGitLab, doxygen, glib, libaccounts-glib, pkgconfig, qtbase, qmake }:
+
+stdenv.mkDerivation rec {
+  name = "accounts-qt-${version}";
+  version = "1.15";
+
+  src = fetchFromGitLab {
+    sha256 = "0cnra7g2mcgzh8ykrj1dpb4khkx676pzdr4ia1bvsp0cli48691w";
+    rev = "VERSION_${version}";
+    repo = "libaccounts-qt";
+    owner = "accounts-sso";
+  };
+
+  buildInputs = [ glib libaccounts-glib qtbase ];
+  nativeBuildInputs = [ doxygen pkgconfig qmake ];
+
+  preConfigure = ''
+    qmakeFlags="$qmakeFlags LIBDIR=$out/lib CMAKE_CONFIG_PATH=$out/lib/cmake"
+  '';
+
+  # Hack to avoid TMPDIR in RPATHs.
+  preFixup = ''rm -rf "$(pwd)" '';
+
+  meta = with stdenv.lib; {
+    description = "Qt library for accessing the online accounts database";
+    homepage = https://gitlab.com/accounts-sso;
+    license = licenses.lgpl21;
+    platforms = with platforms; linux;
+  };
+}