Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at devShellTools-shell 51 lines 965 B view raw
1{ 2 stdenv, 3 lib, 4 fetchFromGitHub, 5 cmake, 6 qtbase, 7 qttools, 8 lxqt-build-tools, 9 wrapQtAppsHook, 10 gitUpdater, 11 version ? "2.2.0", 12}: 13 14stdenv.mkDerivation rec { 15 pname = "qtermwidget"; 16 inherit version; 17 18 src = fetchFromGitHub { 19 owner = "lxqt"; 20 repo = pname; 21 rev = version; 22 hash = 23 { 24 "1.4.0" = "sha256-wYUOqAiBjnupX1ITbFMw7sAk42V37yDz9SrjVhE4FgU="; 25 "2.2.0" = "sha256-tzgHNGB063rgFB15lHTKQplNhwJZtrRprUhMm5H62AA="; 26 } 27 ."${version}"; 28 }; 29 30 nativeBuildInputs = [ 31 cmake 32 lxqt-build-tools 33 qttools 34 wrapQtAppsHook 35 ]; 36 37 buildInputs = [ 38 qtbase 39 ]; 40 41 passthru.updateScript = gitUpdater { }; 42 43 meta = with lib; { 44 broken = stdenv.hostPlatform.isDarwin; 45 homepage = "https://github.com/lxqt/qtermwidget"; 46 description = "Terminal emulator widget for Qt, used by QTerminal"; 47 license = licenses.gpl2Plus; 48 platforms = with platforms; unix; 49 teams = [ teams.lxqt ]; 50 }; 51}