2019-04-19 20:43:04 +01:00
|
|
|
{ buildGoModule, fetchFromGitHub, lib
|
|
|
|
, wayland, libX11, xbitmaps, libXcursor, libXmu
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
name = "wallutils-${version}";
|
2019-06-11 13:40:29 +01:00
|
|
|
version = "5.8.1";
|
2019-04-19 20:43:04 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "xyproto";
|
|
|
|
repo = "wallutils";
|
|
|
|
rev = version;
|
2019-06-11 13:40:29 +01:00
|
|
|
sha256 = "095pgvk4yp2l6xgl63qp61rr2dij51awndwrs5ha9vpdd1jqgvfi";
|
2019-04-19 20:43:04 +01:00
|
|
|
};
|
|
|
|
|
2019-06-11 13:40:29 +01:00
|
|
|
modSha256 = "1kbggry1qrf0nkvysnaky2nl73l5f0bnc4wx0hfr6ifyagfjzy77";
|
2019-04-19 20:43:04 +01:00
|
|
|
|
|
|
|
patches = [ ./lscollection-Add-NixOS-paths-to-DefaultWallpaperDirectories.patch ];
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
# VersionString is sometimes not up-to-date:
|
|
|
|
sed -iE 's/VersionString = "[0-9].[0-9].[0-9]"/VersionString = "${version}"/' wallutils.go
|
|
|
|
'';
|
|
|
|
|
|
|
|
buildInputs = [ wayland libX11 xbitmaps libXcursor libXmu ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Utilities for handling monitors, resolutions, and (timed) wallpapers";
|
|
|
|
inherit (src.meta) homepage;
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ primeos ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|