2022-05-07 22:00:28 +01:00
|
|
|
{ lib, stdenv, fetchFromGitHub, fetchpatch, gtk2, cmake, pkg-config, libXdamage }:
|
2017-09-14 20:24:37 +01:00
|
|
|
|
2015-06-14 21:09:32 +01:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
version = "0.4.2";
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "xwinmosaic";
|
2017-09-14 20:24:37 +01:00
|
|
|
|
2020-11-01 22:39:49 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "soulthreads";
|
|
|
|
repo = pname;
|
|
|
|
rev = "refs/tags/v${version}";
|
2016-06-02 12:26:44 +01:00
|
|
|
sha256 = "16qhrpgn84fz0q3nfvaz5sisc82zk6y7c0sbvbr69zfx5fwbs1rr";
|
2015-06-14 21:09:32 +01:00
|
|
|
};
|
2017-09-14 20:24:37 +01:00
|
|
|
|
2022-05-07 22:00:28 +01:00
|
|
|
patches = [
|
|
|
|
# Pull upstream fix for -fno-common toolchains like upstream gcc-10:
|
|
|
|
# https://github.com/soulthreads/xwinmosaic/pull/33
|
|
|
|
(fetchpatch {
|
|
|
|
name = "fno-common.patch";
|
|
|
|
url = "https://github.com/soulthreads/xwinmosaic/commit/a193a3f30850327066e5a93b29316cba2735e10d.patch";
|
|
|
|
sha256 = "0qpk802j5x6bsfvj6jqw1nz482jynwyk7yrrh4bsziwc53khm95q";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
2021-01-17 09:17:16 +00:00
|
|
|
nativeBuildInputs = [ pkg-config cmake ];
|
2018-03-28 14:24:55 +01:00
|
|
|
buildInputs = [ gtk2 libXdamage ];
|
2017-09-14 20:24:37 +01:00
|
|
|
|
2015-06-14 21:09:32 +01:00
|
|
|
meta = {
|
2021-01-24 09:19:10 +00:00
|
|
|
description = "X window switcher drawing a colourful grid";
|
2021-01-15 09:19:50 +00:00
|
|
|
license = lib.licenses.bsd2 ;
|
|
|
|
maintainers = [lib.maintainers.raskin];
|
|
|
|
platforms = lib.platforms.linux;
|
2015-06-14 21:09:32 +01:00
|
|
|
};
|
|
|
|
}
|