2021-01-11 07:54:33 +00:00
|
|
|
{ lib, stdenv
|
2019-08-05 18:02:06 +00:00
|
|
|
, fetchFromGitHub
|
2021-07-18 02:01:52 +00:00
|
|
|
, fetchpatch
|
2020-07-29 16:33:39 +00:00
|
|
|
, nix-update-script
|
2019-08-05 18:02:06 +00:00
|
|
|
, pantheon
|
2021-01-17 02:21:50 +00:00
|
|
|
, pkg-config
|
2019-08-05 18:02:06 +00:00
|
|
|
, meson
|
|
|
|
, ninja
|
|
|
|
, vala
|
|
|
|
, gtk3
|
|
|
|
, granite
|
|
|
|
, wingpanel
|
|
|
|
, libgee
|
|
|
|
, libxml2
|
|
|
|
}:
|
2018-08-20 20:31:18 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "wingpanel-indicator-nightlight";
|
2021-07-18 02:01:52 +00:00
|
|
|
version = "2.1.0";
|
2018-08-20 20:31:18 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "elementary";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2021-07-18 02:01:52 +00:00
|
|
|
sha256 = "1zxjw68byg4sjn8lzsidzmy4ipwxgnv8rm529a7wzlpgj2xq3x4j";
|
2018-08-20 20:31:18 +00:00
|
|
|
};
|
|
|
|
|
2021-07-18 02:01:52 +00:00
|
|
|
patches = [
|
|
|
|
# Upstream code not respecting our localedir
|
|
|
|
# https://github.com/elementary/wingpanel-indicator-nightlight/pull/91
|
|
|
|
(fetchpatch {
|
|
|
|
url = "https://github.com/elementary/wingpanel-indicator-nightlight/commit/4e15f71ed958df3569b2f1e224b9fb18613281f1.patch";
|
|
|
|
sha256 = "07awmswyy0988pm6ggyz22mllja675cbdzrjdqc1xd4knwcgy77v";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
2018-08-20 20:31:18 +00:00
|
|
|
passthru = {
|
2020-07-29 16:33:39 +00:00
|
|
|
updateScript = nix-update-script {
|
2019-12-22 06:44:42 +00:00
|
|
|
attrPath = "pantheon.${pname}";
|
2018-08-20 20:31:18 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
libxml2
|
|
|
|
meson
|
|
|
|
ninja
|
2021-01-17 02:21:50 +00:00
|
|
|
pkg-config
|
2018-08-20 20:31:18 +00:00
|
|
|
vala
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
granite
|
|
|
|
gtk3
|
|
|
|
libgee
|
|
|
|
wingpanel
|
|
|
|
];
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2018-08-20 20:31:18 +00:00
|
|
|
description = "Night Light Indicator for Wingpanel";
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://github.com/elementary/wingpanel-indicator-nightlight";
|
2018-08-20 20:31:18 +00:00
|
|
|
license = licenses.gpl2Plus;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = pantheon.maintainers;
|
|
|
|
};
|
|
|
|
}
|