Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at devShellTools-shell 54 lines 1.0 kB view raw
1{ 2 stdenv, 3 lib, 4 fetchFromGitHub, 5 dtk6widget, 6 qt6integration, 7 qt6platform-plugins, 8 qt6Packages, 9 cmake, 10 pkg-config, 11 gtest, 12}: 13 14stdenv.mkDerivation rec { 15 pname = "deepin-calculator"; 16 version = "6.5.7"; 17 18 src = fetchFromGitHub { 19 owner = "linuxdeepin"; 20 repo = pname; 21 rev = version; 22 hash = "sha256-p3tEUIM7rxYUVLl7ZaEm20IZWRMNi12AIj9mQe6iB5I="; 23 }; 24 25 nativeBuildInputs = [ 26 cmake 27 qt6Packages.qttools 28 pkg-config 29 qt6Packages.wrapQtAppsHook 30 ]; 31 32 buildInputs = [ 33 dtk6widget 34 qt6integration 35 qt6platform-plugins 36 qt6Packages.qtbase 37 qt6Packages.qtsvg 38 gtest 39 ]; 40 41 # qtsvg can't not be found with strictDeps 42 strictDeps = false; 43 44 cmakeFlags = [ "-DVERSION=${version}" ]; 45 46 meta = { 47 description = "Easy to use calculator for ordinary users"; 48 mainProgram = "deepin-calculator"; 49 homepage = "https://github.com/linuxdeepin/deepin-calculator"; 50 license = lib.licenses.gpl3Plus; 51 platforms = lib.platforms.linux; 52 teams = [ lib.teams.deepin ]; 53 }; 54}