Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at devShellTools-shell 66 lines 1.3 kB view raw
1{ 2 stdenv, 3 lib, 4 fetchFromGitHub, 5 cmake, 6 pkg-config, 7 libsForQt5, 8 dtkwidget, 9 qt5integration, 10 qt5platform-plugins, 11 dde-qt-dbus-factory, 12 libical, 13 sqlite, 14 runtimeShell, 15}: 16 17stdenv.mkDerivation rec { 18 pname = "dde-calendar"; 19 version = "5.14.4"; 20 21 src = fetchFromGitHub { 22 owner = "linuxdeepin"; 23 repo = pname; 24 rev = version; 25 hash = "sha256-bZxNOBtLjop0eYxpMeoomaWYvPcMyDfQfgGPK9m+ARo="; 26 }; 27 28 patches = [ ./fix-wrapped-name-not-in-whitelist.diff ]; 29 30 postPatch = '' 31 for file in $(grep -rl "/bin/bash"); do 32 substituteInPlace $file --replace "/bin/bash" "${runtimeShell}" 33 done 34 ''; 35 36 nativeBuildInputs = [ 37 cmake 38 libsForQt5.qttools 39 pkg-config 40 libsForQt5.wrapQtAppsHook 41 ]; 42 43 buildInputs = [ 44 qt5integration 45 qt5platform-plugins 46 dtkwidget 47 libsForQt5.qtbase 48 libsForQt5.qtsvg 49 dde-qt-dbus-factory 50 libical 51 sqlite 52 ]; 53 54 cmakeFlags = [ "-DVERSION=${version}" ]; 55 56 strictDeps = true; 57 58 meta = with lib; { 59 description = "Calendar for Deepin Desktop Environment"; 60 mainProgram = "dde-calendar"; 61 homepage = "https://github.com/linuxdeepin/dde-calendar"; 62 license = licenses.gpl3Plus; 63 platforms = platforms.linux; 64 teams = [ teams.deepin ]; 65 }; 66}