summary refs log tree commit diff
path: root/pkgs/tools/misc/dialogbox/default.nix
blob: c18a336bc6967adfb0acee8587241e9718c65cc1 (plain) (blame)
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
43
44
45
{ lib
, mkDerivation
, fetchFromGitHub
, qmake
, qtbase
}:

mkDerivation rec {
  pname = "dialogbox";
  version = "1.0+unstable=2020-11-16";

  src = fetchFromGitHub {
    owner = "martynets";
    repo = pname;
    rev = "6989740746f376becc989ab2698e77d14186a0f9";
    hash = "sha256-paTas3KbV4yZ0ePnrOH1S3bLLHDddFml1h6b6azK4RQ=";
  };

  nativeBuildInputs = [
    qmake
  ];

  buildInputs = [
    qtbase
  ];

  installPhase = ''
    runHook preInstall

    install -d $out/{bin,share/doc/dialogbox}
    install dist/dialogbox $out/bin
    install README.md $out/share/doc/dialogbox/
    cp -r demos $out/share/doc/dialogbox/demos

    runHook postInstall
  '';

  meta = with lib; {
    homepage = "https://github.com/martynets/dialogbox/";
    description = "Qt-based scriptable engine providing GUI dialog boxes";
    license = licenses.gpl3Plus;
    maintainers = with maintainers; [ AndersonTorres ];
    platforms = platforms.unix;
  };
}