2019-09-21 10:30:00 +01:00
|
|
|
{ buildGoPackage, fetchFromGitHub, lib
|
2021-11-14 10:03:17 +00:00
|
|
|
, pkg-config
|
|
|
|
, wayland, libX11, xbitmaps, libXcursor, libXmu, libXpm, libheif
|
2019-04-19 20:43:04 +01:00
|
|
|
}:
|
|
|
|
|
2019-09-21 10:30:00 +01:00
|
|
|
buildGoPackage rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "wallutils";
|
2021-11-14 10:03:17 +00:00
|
|
|
version = "5.10.0";
|
2019-04-19 20:43:04 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "xyproto";
|
|
|
|
repo = "wallutils";
|
|
|
|
rev = version;
|
2021-11-14 10:03:17 +00:00
|
|
|
sha256 = "1phlkpy8kg4ai2xmachpbbxvl8fga9hqqbad2a2121yl60709l1k";
|
2019-04-19 20:43:04 +01:00
|
|
|
};
|
|
|
|
|
2019-09-21 10:30:00 +01:00
|
|
|
goPackagePath = "github.com/xyproto/wallutils";
|
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
|
|
|
|
'';
|
|
|
|
|
2021-11-14 10:03:17 +00:00
|
|
|
nativeBuildInputs = [ pkg-config ];
|
|
|
|
buildInputs = [ wayland libX11 xbitmaps libXcursor libXmu libXpm libheif ];
|
2019-04-19 20:43:04 +01:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Utilities for handling monitors, resolutions, and (timed) wallpapers";
|
|
|
|
inherit (src.meta) homepage;
|
|
|
|
license = licenses.mit;
|
2021-11-14 10:09:34 +00:00
|
|
|
maintainers = with maintainers; [ ];
|
2019-04-19 20:43:04 +01:00
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|