Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at devShellTools-shell 66 lines 1.2 kB view raw
1{ 2 lib, 3 stdenv, 4 fetchFromGitHub, 5 cmake, 6 libXdmcp, 7 libexif, 8 libfm, 9 libpthreadstubs, 10 libxcb, 11 lxqt-build-tools, 12 lxqt-menu-data, 13 menu-cache, 14 pkg-config, 15 qttools, 16 wrapQtAppsHook, 17 gitUpdater, 18 version ? "2.2.0", 19 qtx11extras ? null, 20}: 21 22stdenv.mkDerivation rec { 23 pname = "libfm-qt"; 24 inherit version; 25 26 src = fetchFromGitHub { 27 owner = "lxqt"; 28 repo = "libfm-qt"; 29 rev = version; 30 hash = 31 { 32 "1.4.0" = "sha256-QxPYSA7537K+/dRTxIYyg+Q/kj75rZOdzlUsmSdQcn4="; 33 "2.2.0" = "sha256-xLXHwrcMJ8PObZ2qWVZTf9FREcjUi5qtcCJgNHj391Q="; 34 } 35 ."${version}"; 36 }; 37 38 nativeBuildInputs = [ 39 cmake 40 pkg-config 41 lxqt-build-tools 42 qttools 43 wrapQtAppsHook 44 ]; 45 46 buildInputs = [ 47 libXdmcp 48 libexif 49 libfm 50 libpthreadstubs 51 libxcb 52 lxqt-menu-data 53 menu-cache 54 ] 55 ++ (lib.optionals (lib.versionAtLeast "2.0.0" version) [ qtx11extras ]); 56 57 passthru.updateScript = gitUpdater { }; 58 59 meta = with lib; { 60 homepage = "https://github.com/lxqt/libfm-qt"; 61 description = "Core library of PCManFM-Qt (Qt binding for libfm)"; 62 license = licenses.lgpl21Plus; 63 platforms = with platforms; unix; 64 teams = [ teams.lxqt ]; 65 }; 66}