python312Packages.publicsuffixlist: 1.0.2.20241207 -> 1.0.2.20241213 (#365192)
[NixPkgs.git] / pkgs / tools / misc / dialogbox / default.nix
blob6287ed999ab24a4842e38148e8299ea281482b25
2   stdenv,
3   lib,
4   mkDerivation,
5   fetchFromGitHub,
6   qmake,
7   qtbase,
8 }:
10 mkDerivation rec {
11   pname = "dialogbox";
12   version = "1.0+unstable=2020-11-16";
14   src = fetchFromGitHub {
15     owner = "martynets";
16     repo = pname;
17     rev = "6989740746f376becc989ab2698e77d14186a0f9";
18     hash = "sha256-paTas3KbV4yZ0ePnrOH1S3bLLHDddFml1h6b6azK4RQ=";
19   };
21   nativeBuildInputs = [
22     qmake
23   ];
25   buildInputs = [
26     qtbase
27   ];
29   installPhase = ''
30     runHook preInstall
32     install -d $out/{bin,share/doc/dialogbox}
33     install dist/dialogbox $out/bin
34     install README.md $out/share/doc/dialogbox/
35     cp -r demos $out/share/doc/dialogbox/demos
37     runHook postInstall
38   '';
40   meta = with lib; {
41     broken = stdenv.hostPlatform.isDarwin;
42     homepage = "https://github.com/martynets/dialogbox/";
43     description = "Qt-based scriptable engine providing GUI dialog boxes";
44     license = licenses.gpl3Plus;
45     maintainers = with maintainers; [ AndersonTorres ];
46     platforms = platforms.unix;
47     mainProgram = "dialogbox";
48   };