889482aab3
GitOrigin-RevId: f2537a505d45c31fe5d9c27ea9829b6f4c4e6ac5
36 lines
1 KiB
Nix
36 lines
1 KiB
Nix
{ buildGoPackage, fetchFromGitHub, lib
|
|
, pkg-config
|
|
, wayland, libX11, xbitmaps, libXcursor, libXmu, libXpm, libheif
|
|
}:
|
|
|
|
buildGoPackage rec {
|
|
pname = "wallutils";
|
|
version = "5.11.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "xyproto";
|
|
repo = "wallutils";
|
|
rev = version;
|
|
sha256 = "sha256-5yx6++uciCoT+gcqGnag9V1eYdfwHIQ8WrsuGU4A51E=";
|
|
};
|
|
|
|
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
|
|
'';
|
|
|
|
nativeBuildInputs = [ pkg-config ];
|
|
buildInputs = [ wayland libX11 xbitmaps libXcursor libXmu libXpm libheif ];
|
|
|
|
meta = with lib; {
|
|
description = "Utilities for handling monitors, resolutions, and (timed) wallpapers";
|
|
inherit (src.meta) homepage;
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ ];
|
|
platforms = platforms.linux;
|
|
};
|
|
}
|