8ac5e011d6
GitOrigin-RevId: 2c3273caa153ee8eb5786bc8141b85b859e7efd7
34 lines
969 B
Nix
34 lines
969 B
Nix
{ buildGoPackage, fetchFromGitHub, lib
|
|
, wayland, libX11, xbitmaps, libXcursor, libXmu, libXpm
|
|
}:
|
|
|
|
buildGoPackage rec {
|
|
pname = "wallutils";
|
|
version = "5.9.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "xyproto";
|
|
repo = "wallutils";
|
|
rev = version;
|
|
sha256 = "17xw1311xpmi5c8mwa9yvn4pxa7g4n09j84lvy61gmxc5m128fwy";
|
|
};
|
|
|
|
goPackagePath = "github.com/xyproto/wallutils";
|
|
|
|
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 libXpm ];
|
|
|
|
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;
|
|
};
|
|
}
|