anvil-editor: init at 0.4
[NixPkgs.git] / pkgs / tools / misc / dialogbox / default.nix
blobe6849fa843100e1ca43f5cb6080ddf7d05254d08
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.hostPlatform.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     mainProgram = "dialogbox";
47   };