Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at devShellTools-shell 48 lines 900 B view raw
1{ 2 fetchFromGitLab, 3 lib, 4 stdenv, 5 gtk2, 6 pkg-config, 7 qmake, 8 qtbase, 9 nix-update-script, 10}: 11 12stdenv.mkDerivation (finalAttrs: { 13 pname = "qt6gtk2"; 14 version = "0.5"; 15 16 src = fetchFromGitLab { 17 domain = "opencode.net"; 18 owner = "trialuser"; 19 repo = "qt6gtk2"; 20 tag = finalAttrs.version; 21 hash = "sha256-G2TQ4LU8Cmvd+u6/s1ugbUkZcRXHTBm3+ISY0g/5/60="; 22 }; 23 24 buildInputs = [ 25 gtk2 26 qtbase 27 ]; 28 nativeBuildInputs = [ 29 pkg-config 30 qmake 31 ]; 32 33 dontWrapQtApps = true; 34 35 qmakeFlags = [ 36 "PLUGINDIR=${placeholder "out"}/${qtbase.qtPluginPrefix}" 37 ]; 38 39 passthru.updateScript = nix-update-script { }; 40 41 meta = { 42 description = "GTK+2.0 integration plugins for Qt6"; 43 license = lib.licenses.gpl2Plus; 44 homepage = "https://github.com/trialuser02/qt6gtk2"; 45 maintainers = [ lib.maintainers.misterio77 ]; 46 platforms = lib.platforms.linux; 47 }; 48})