summaryrefslogtreecommitdiffstats
path: root/pkgs/development/libraries/signond/default.nix
blob: 5339947dce60cc8ea80566d74f123968f224b696 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
{
  stdenv,
  lib,
  fetchFromGitLab,
  qmake,
  qtbase,
  wrapQtAppsHook,
  doxygen,
}:

stdenv.mkDerivation {
  pname = "signond";
  version = "8.61-unstable-2023-11-24";

  # pinned to fork with Qt6 support
  src = fetchFromGitLab {
    owner = "nicolasfella";
    repo = "signond";
    rev = "c8ad98249af541514ff7a81634d3295e712f1a39";
    hash = "sha256-0FcSVF6cPuFEU9h7JIbanoosW/B4rQhFPOq7iBaOdKw=";
  };

  nativeBuildInputs = [
    qmake
    doxygen
    wrapQtAppsHook
  ];

  buildInputs = [ qtbase ];

  preConfigure = ''
    substituteInPlace src/signond/signond.pro \
      --replace "/etc" "@out@/etc"
  '';

  meta = {
    homepage = "https://gitlab.com/accounts-sso/signond";
    description = "Signon Daemon for Qt";
    maintainers = [ ];
    platforms = lib.platforms.linux;
  };
}