python3Packages.orjson: Disable failing tests on 32 bit
[NixPkgs.git] / pkgs / tools / misc / dialogbox / default.nix
blob02fb122d4465756c7b3b6d514da71577f24d98a4
1 { stdenv
2 , lib
3 , mkDerivation
4 , fetchFromGitHub
5 , qmake
6 , qtbase
7 }:
9 mkDerivation rec {
10   pname = "dialogbox";
11   version = "1.0+unstable=2020-11-16";
13   src = fetchFromGitHub {
14     owner = "martynets";
15     repo = pname;
16     rev = "6989740746f376becc989ab2698e77d14186a0f9";
17     hash = "sha256-paTas3KbV4yZ0ePnrOH1S3bLLHDddFml1h6b6azK4RQ=";
18   };
20   nativeBuildInputs = [
21     qmake
22   ];
24   buildInputs = [
25     qtbase
26   ];
28   installPhase = ''
29     runHook preInstall
31     install -d $out/{bin,share/doc/dialogbox}
32     install dist/dialogbox $out/bin
33     install README.md $out/share/doc/dialogbox/
34     cp -r demos $out/share/doc/dialogbox/demos
36     runHook postInstall
37   '';
39   meta = with lib; {
40     broken = stdenv.isDarwin;
41     homepage = "https://github.com/martynets/dialogbox/";
42     description = "Qt-based scriptable engine providing GUI dialog boxes";
43     license = licenses.gpl3Plus;
44     maintainers = with maintainers; [ AndersonTorres ];
45     platforms = platforms.unix;
46   };