nixpkgs/pkgs/desktops/pantheon/desktop/wingpanel-indicators/nightlight/default.nix

50 lines
1.1 KiB
Nix

{ stdenv, fetchFromGitHub, pantheon, pkgconfig, meson, ninja, vala
, gtk3, granite, wingpanel, libgee, libxml2, gobject-introspection
, elementary-icon-theme, wrapGAppsHook }:
stdenv.mkDerivation rec {
pname = "wingpanel-indicator-nightlight";
version = "2.0.1";
src = fetchFromGitHub {
owner = "elementary";
repo = pname;
rev = version;
sha256 = "17pa048asbkhzz5945hjp96dnghdl72nqp1zq0b999nawnfrb339";
};
passthru = {
updateScript = pantheon.updateScript {
repoName = pname;
};
};
nativeBuildInputs = [
gobject-introspection
libxml2
meson
ninja
pkgconfig
vala
wrapGAppsHook
];
buildInputs = [
elementary-icon-theme
granite
gtk3
libgee
wingpanel
];
PKG_CONFIG_WINGPANEL_2_0_INDICATORSDIR = "lib/wingpanel";
meta = with stdenv.lib; {
description = "Night Light Indicator for Wingpanel";
homepage = https://github.com/elementary/wingpanel-indicator-nightlight;
license = licenses.gpl2Plus;
platforms = platforms.linux;
maintainers = pantheon.maintainers;
};
}