Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / applications / window-managers / i3 / blocks.nix
blob1574c587743bef5f76c9467cfb3d34a802aaf8de
1 { fetchFromGitHub, fetchpatch, lib, stdenv, autoreconfHook, pkg-config }:
3 with lib;
5 stdenv.mkDerivation {
6   pname = "i3blocks";
7   version = "1.5";
9   src = fetchFromGitHub {
10     owner = "vivien";
11     repo = "i3blocks";
12     rev = "3417602a2d8322bc866861297f535e1ef80b8cb0";
13     sha256 = "0v8mwnm8qzpv6xnqvrk43s4b9iyld4naqzbaxk4ldq1qkhai0wsv";
14   };
16   patches = [
17     # XDG_CONFIG_DIRS can contain multiple elements separated by colons, which should be searched in order.
18     (fetchpatch {
19       # https://github.com/vivien/i3blocks/pull/405
20       url = "https://github.com/edef1c/i3blocks/commit/d57b32f9a364aeaf36869efdd54240433c737e57.patch";
21       sha256 = "102xb0ax0hmg82dz2gzfag470dkckzf2yizai0izacvrz0d3ngj1";
22     })
23   ];
25   nativeBuildInputs = [ autoreconfHook pkg-config ];
27   meta = {
28     description = "A flexible scheduler for your i3bar blocks";
29     homepage = "https://github.com/vivien/i3blocks";
30     license = licenses.gpl3;
31     platforms = with platforms; freebsd ++ linux;
32   };