nixpkgs/pkgs/tools/graphics/wallutils/default.nix

35 lines
987 B
Nix
Raw Normal View History

2019-04-19 20:43:04 +01:00
{ buildGoModule, fetchFromGitHub, lib
2019-09-03 10:59:43 +01:00
, wayland, libX11, xbitmaps, libXcursor, libXmu, libXpm
2019-04-19 20:43:04 +01:00
}:
buildGoModule rec {
pname = "wallutils";
2019-09-03 10:59:43 +01:00
version = "5.8.2";
2019-04-19 20:43:04 +01:00
src = fetchFromGitHub {
owner = "xyproto";
repo = "wallutils";
rev = version;
2019-09-03 10:59:43 +01:00
sha256 = "1ghvcxsy5prj8l38r4lg39imsqbwmvn1zmiv7004j6skmgpaaawh";
2019-04-19 20:43:04 +01:00
};
2019-09-03 10:59:43 +01:00
modSha256 = "0siw1g3fsk1xjri9k1pb03filax8an5sfza5db52krh80g9xasah";
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
'';
2019-09-03 10:59:43 +01:00
buildInputs = [ wayland libX11 xbitmaps libXcursor libXmu libXpm ];
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;
maintainers = with maintainers; [ primeos ];
platforms = platforms.linux;
};
}