Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at devShellTools-shell 49 lines 1.0 kB view raw
1{ 2 stdenv, 3 lib, 4 mkDerivation, 5 fetchFromGitHub, 6 qmake, 7 qtbase, 8}: 9 10mkDerivation rec { 11 pname = "dialogbox"; 12 version = "1.0+unstable=2020-11-16"; 13 14 src = fetchFromGitHub { 15 owner = "martynets"; 16 repo = pname; 17 rev = "6989740746f376becc989ab2698e77d14186a0f9"; 18 hash = "sha256-paTas3KbV4yZ0ePnrOH1S3bLLHDddFml1h6b6azK4RQ="; 19 }; 20 21 nativeBuildInputs = [ 22 qmake 23 ]; 24 25 buildInputs = [ 26 qtbase 27 ]; 28 29 installPhase = '' 30 runHook preInstall 31 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 36 37 runHook postInstall 38 ''; 39 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; [ ]; 46 platforms = platforms.unix; 47 mainProgram = "dialogbox"; 48 }; 49}