2021-01-15 14:21:58 +01:00
|
|
|
{ fetchFromGitHub, fetchpatch, lib, stdenv, autoreconfHook, pkg-config }:
|
2015-12-11 07:55:00 +01:00
|
|
|
|
2021-01-15 14:21:58 +01:00
|
|
|
with lib;
|
2017-05-30 20:30:41 +02:00
|
|
|
|
2019-08-13 23:52:01 +02:00
|
|
|
stdenv.mkDerivation {
|
2019-08-15 14:41:18 +02:00
|
|
|
pname = "i3blocks";
|
2019-11-21 09:49:55 +01:00
|
|
|
version = "1.5";
|
2015-12-11 07:55:00 +01:00
|
|
|
|
2019-04-07 16:56:33 +02:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "vivien";
|
|
|
|
repo = "i3blocks";
|
2019-11-21 09:49:55 +01:00
|
|
|
rev = "3417602a2d8322bc866861297f535e1ef80b8cb0";
|
|
|
|
sha256 = "0v8mwnm8qzpv6xnqvrk43s4b9iyld4naqzbaxk4ldq1qkhai0wsv";
|
2015-12-11 07:55:00 +01:00
|
|
|
};
|
|
|
|
|
2019-10-17 20:14:15 +02:00
|
|
|
patches = [
|
|
|
|
# XDG_CONFIG_DIRS can contain multiple elements separated by colons, which should be searched in order.
|
|
|
|
(fetchpatch {
|
|
|
|
# https://github.com/vivien/i3blocks/pull/405
|
2020-04-01 03:11:51 +02:00
|
|
|
url = "https://github.com/edef1c/i3blocks/commit/d57b32f9a364aeaf36869efdd54240433c737e57.patch";
|
2019-10-17 20:14:15 +02:00
|
|
|
sha256 = "102xb0ax0hmg82dz2gzfag470dkckzf2yizai0izacvrz0d3ngj1";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
2019-11-21 09:49:55 +01:00
|
|
|
nativeBuildInputs = [ autoreconfHook pkg-config ];
|
2017-05-30 20:30:41 +02:00
|
|
|
|
|
|
|
meta = {
|
2016-02-27 18:24:00 +01:00
|
|
|
description = "A flexible scheduler for your i3bar blocks";
|
2024-03-19 03:14:51 +01:00
|
|
|
mainProgram = "i3blocks";
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://github.com/vivien/i3blocks";
|
2015-12-11 07:55:00 +01:00
|
|
|
license = licenses.gpl3;
|
2017-01-13 19:09:28 +01:00
|
|
|
platforms = with platforms; freebsd ++ linux;
|
2015-12-11 07:55:00 +01:00
|
|
|
};
|
|
|
|
}
|