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

35 lines
969 B
Nix
Raw Normal View History

2019-09-21 11:30:00 +02:00
{ buildGoPackage, fetchFromGitHub, lib
2019-09-03 11:59:43 +02:00
, wayland, libX11, xbitmaps, libXcursor, libXmu, libXpm
2019-04-19 21:43:04 +02:00
}:
2019-09-21 11:30:00 +02:00
buildGoPackage rec {
pname = "wallutils";
2020-02-28 21:07:28 +01:00
version = "5.9.0";
2019-04-19 21:43:04 +02:00
src = fetchFromGitHub {
owner = "xyproto";
repo = "wallutils";
rev = version;
2020-02-28 21:07:28 +01:00
sha256 = "17xw1311xpmi5c8mwa9yvn4pxa7g4n09j84lvy61gmxc5m128fwy";
2019-04-19 21:43:04 +02:00
};
2019-09-21 11:30:00 +02:00
goPackagePath = "github.com/xyproto/wallutils";
2019-04-19 21:43:04 +02: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 11:59:43 +02:00
buildInputs = [ wayland libX11 xbitmaps libXcursor libXmu libXpm ];
2019-04-19 21:43:04 +02: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;
};
}