Skip to content

Commit

Permalink
Merge pull request #80417 from Ma27/fix-waybar
Browse files Browse the repository at this point in the history
waybar: 0.9.0 -> 0.9.1, fix build
  • Loading branch information
Ma27 authored Feb 20, 2020
2 parents 5e32ee9 + 89e2a43 commit 3c0b262
Show file tree
Hide file tree
Showing 3 changed files with 46 additions and 4 deletions.
10 changes: 6 additions & 4 deletions pkgs/applications/misc/waybar/default.nix
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{ stdenv, fetchFromGitHub, meson, pkgconfig, ninja, wrapGAppsHook
, wayland, wlroots, gtkmm3, libinput, libsigcxx, jsoncpp, fmt, scdoc, spdlog, gtk-layer-shell
, howard-hinnant-date, cmake
, traySupport ? true, libdbusmenu-gtk3
, pulseSupport ? false, libpulseaudio
, nlSupport ? true, libnl
Expand All @@ -9,21 +10,21 @@
}:
stdenv.mkDerivation rec {
pname = "waybar";
version = "0.9.0";
version = "0.9.1";

src = fetchFromGitHub {
owner = "Alexays";
repo = "Waybar";
rev = version;
sha256 = "1w8a6jih872ry288k8ic6mjfi9ccf1jwc24wnh9p5c7w73247c2c";
sha256 = "0drlv8im5phz39jxp3gxkc40b6f85bb3piff2v3hmnfzh7ib915s";
};

nativeBuildInputs = [
meson ninja pkgconfig scdoc wrapGAppsHook
meson ninja pkgconfig scdoc wrapGAppsHook cmake
];

buildInputs = with stdenv.lib;
[ wayland wlroots gtkmm3 libinput libsigcxx jsoncpp fmt spdlog gtk-layer-shell ]
[ wayland wlroots gtkmm3 libinput libsigcxx jsoncpp fmt spdlog gtk-layer-shell howard-hinnant-date ]
++ optional traySupport libdbusmenu-gtk3
++ optional pulseSupport libpulseaudio
++ optional nlSupport libnl
Expand All @@ -50,5 +51,6 @@
license = licenses.mit;
maintainers = with maintainers; [ FlorianFranzen minijackson synthetica ];
platforms = platforms.unix;
homepage = "https://github.com/alexays/waybar";
};
}
38 changes: 38 additions & 0 deletions pkgs/development/libraries/howard-hinnant-date/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
{ stdenv, fetchFromGitHub, cmake, curl, fetchpatch }:

stdenv.mkDerivation rec {
pname = "howard-hinnant-date-unstable";
version = "2020-01-24";

src = fetchFromGitHub {
owner = "HowardHinnant";
repo = "date";
rev = "9a0ee2542848ab8625984fc8cdbfb9b5414c0082";
sha256 = "0yxsn0hj22n61bjywysxqgfv7hj5xvsl6isma95fl8xrimpny083";
};

patches = [
(fetchpatch {
url = "https://github.com/HowardHinnant/date/commit/e56b2dce7e89a92e1b9b35caa13b3e938c4cedea.patch";
sha256 = "0m3qbhq7kmm9qa3jm6d2px7c1dxdj5k9lffgdvqnrwmhxwj1p9n2";
})
];

nativeBuildInputs = [ cmake ];
buildInputs = [ curl ];

cmakeFlags = [
"-DBUILD_TZ_LIB=true"
"-DBUILD_SHARED_LIBS=true"
];

outputs = [ "out" "dev" ];

meta = with stdenv.lib; {
license = licenses.mit;
description = "A date and time library based on the C++11/14/17 <chrono> header";
homepage = "https://github.com/HowardHinnant/date";
platforms = platforms.linux;
maintainers = with maintainers; [ ma27 ];
};
}
2 changes: 2 additions & 0 deletions pkgs/top-level/all-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -1562,6 +1562,8 @@ in

datasette = with python3Packages; toPythonApplication datasette;

howard-hinnant-date = callPackage ../development/libraries/howard-hinnant-date { };

datefudge = callPackage ../tools/system/datefudge { };

dateutils = callPackage ../tools/misc/dateutils { };
Expand Down

0 comments on commit 3c0b262

Please sign in to comment.