wallutils: init at 5.7.2 (#59878)

This commit is contained in:
Michael Weiss
2019-04-19 21:43:04 +02:00
committed by GitHub
parent c793258a88
commit e34c5309b6
3 changed files with 61 additions and 0 deletions
+34
View File
@@ -0,0 +1,34 @@
{ buildGoModule, fetchFromGitHub, lib
, wayland, libX11, xbitmaps, libXcursor, libXmu
}:
buildGoModule rec {
name = "wallutils-${version}";
version = "5.7.2";
src = fetchFromGitHub {
owner = "xyproto";
repo = "wallutils";
rev = version;
sha256 = "1q4487s83iwwgd40hkihpns84ya8mg54zp63ag519cdjizz38xyi";
};
modSha256 = "0kj9s9ymd99a5w9r1d997qysnzlgpnmh5dnki33h1jlwz47nwkld";
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;
};
}