nixpkgs-suyu/pkgs/development/libraries/accounts-qt/default.nix
Ryan Mulligan 6f463fa7d1 accounts-qt: 1.13 -> 1.15
- Built on NixOS
- ran `/nix/store/790jpjbv7n4ccfwbnp2hpxi6xnh0rp4m-accounts-qt-1.15/bin/accountstest --help` got 0 exit code
- ran `/nix/store/790jpjbv7n4ccfwbnp2hpxi6xnh0rp4m-accounts-qt-1.15/bin/accountstest --help` and found version 1.15
- found 1.15 with grep in /nix/store/790jpjbv7n4ccfwbnp2hpxi6xnh0rp4m-accounts-qt-1.15
- directory tree listing: https://gist.github.com/5d6d729f133d93d11e63e456638fd32e
2018-03-25 11:03:35 -05:00

30 lines
868 B
Nix

{ 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;
};
}