2021-01-15 22:18:51 +00:00
|
|
|
{ lib, stdenv
|
2020-09-25 04:45:31 +00:00
|
|
|
, fetchFromGitHub
|
|
|
|
, pkg-config
|
|
|
|
, autoreconfHook
|
2021-05-28 09:39:13 +00:00
|
|
|
, installShellFiles
|
2020-09-25 04:45:31 +00:00
|
|
|
, pixman
|
|
|
|
, xcbutil
|
|
|
|
, xcbutilimage
|
2020-12-29 15:07:52 +00:00
|
|
|
, libseccomp
|
2020-09-25 04:45:31 +00:00
|
|
|
, libjpeg
|
|
|
|
, libpng
|
|
|
|
, libXpm
|
|
|
|
}:
|
2020-06-15 15:56:04 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "xwallpaper";
|
2022-08-12 12:06:08 +00:00
|
|
|
version = "0.7.4";
|
2020-06-15 15:56:04 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "stoeckmann";
|
|
|
|
repo = "xwallpaper";
|
|
|
|
rev = "v${version}";
|
2022-08-12 12:06:08 +00:00
|
|
|
sha256 = "sha256-onxneLmXs1rYwpTzcnn+rbDboWVoEQgtGMHx/bMPRa8=";
|
2020-06-15 15:56:04 +00:00
|
|
|
};
|
|
|
|
|
2021-05-28 09:39:13 +00:00
|
|
|
nativeBuildInputs = [ pkg-config autoreconfHook installShellFiles ];
|
2020-12-29 15:07:52 +00:00
|
|
|
buildInputs = [ pixman xcbutilimage xcbutil libseccomp libjpeg libpng libXpm ];
|
2020-06-15 15:56:04 +00:00
|
|
|
|
2021-05-28 09:39:13 +00:00
|
|
|
postInstall = ''
|
|
|
|
installShellCompletion --zsh _xwallpaper
|
|
|
|
'';
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-06-15 15:56:04 +00:00
|
|
|
homepage = "https://github.com/stoeckmann/xwallpaper";
|
|
|
|
description = "Utility for setting wallpapers in X";
|
|
|
|
license = licenses.isc;
|
2024-07-31 10:19:44 +00:00
|
|
|
maintainers = [ ];
|
2020-06-15 15:56:04 +00:00
|
|
|
platforms = platforms.linux;
|
2024-01-02 11:29:13 +00:00
|
|
|
mainProgram = "xwallpaper";
|
2020-06-15 15:56:04 +00:00
|
|
|
};
|
|
|
|
}
|