Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 stdenv, 4 fetchFromGitHub, 5 nix-update-script, 6 replaceVars, 7 pkg-config, 8 meson, 9 ninja, 10 vala, 11 gtk3, 12 granite, 13 wingpanel, 14 evolution-data-server, 15 libical, 16 libgee, 17 libhandy, 18 libxml2, 19 elementary-calendar, 20}: 21 22stdenv.mkDerivation rec { 23 pname = "wingpanel-indicator-datetime"; 24 version = "2.4.2"; 25 26 src = fetchFromGitHub { 27 owner = "elementary"; 28 repo = pname; 29 rev = version; 30 sha256 = "sha256-iR80pF3KUe0WboFm2/f1ZK9/wER2LfmRBd92e8jGTHs="; 31 }; 32 33 patches = [ 34 (replaceVars ./fix-paths.patch { 35 elementary_calendar = elementary-calendar; 36 }) 37 ]; 38 39 nativeBuildInputs = [ 40 libxml2 41 meson 42 ninja 43 pkg-config 44 vala 45 ]; 46 47 buildInputs = [ 48 evolution-data-server 49 granite 50 gtk3 51 libgee 52 libhandy 53 libical 54 wingpanel 55 ]; 56 57 passthru = { 58 updateScript = nix-update-script { }; 59 }; 60 61 meta = with lib; { 62 description = "Date & Time Indicator for Wingpanel"; 63 homepage = "https://github.com/elementary/wingpanel-indicator-datetime"; 64 license = licenses.gpl3Plus; 65 platforms = platforms.linux; 66 teams = [ teams.pantheon ]; 67 }; 68}