2021-01-11 08:54:33 +01:00
|
|
|
{ lib, stdenv
|
2020-09-07 16:36:38 +02:00
|
|
|
, fetchFromGitHub
|
|
|
|
, pkg-config
|
|
|
|
, autoreconfHook
|
2021-05-25 01:44:28 +02:00
|
|
|
, installShellFiles
|
2020-09-07 16:36:38 +02:00
|
|
|
, pixman
|
|
|
|
, xcbutil
|
|
|
|
, xcbutilimage
|
2020-12-26 21:20:57 +01:00
|
|
|
, libseccomp
|
2020-09-07 16:36:38 +02:00
|
|
|
, libjpeg
|
|
|
|
, libpng
|
|
|
|
, libXpm
|
|
|
|
}:
|
2020-05-13 20:14:22 +02:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "xwallpaper";
|
2021-08-13 19:29:16 +02:00
|
|
|
version = "0.7.3";
|
2020-05-13 20:14:22 +02:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "stoeckmann";
|
|
|
|
repo = "xwallpaper";
|
|
|
|
rev = "v${version}";
|
2021-08-13 19:29:16 +02:00
|
|
|
sha256 = "sha256-O4VynpP3VJY/p6+NLUuKetwoMfbp93aXTiRoQJkgW+c=";
|
2020-05-13 20:14:22 +02:00
|
|
|
};
|
|
|
|
|
2021-05-25 01:44:28 +02:00
|
|
|
nativeBuildInputs = [ pkg-config autoreconfHook installShellFiles ];
|
2020-12-26 21:20:57 +01:00
|
|
|
buildInputs = [ pixman xcbutilimage xcbutil libseccomp libjpeg libpng libXpm ];
|
2020-05-13 20:14:22 +02:00
|
|
|
|
2021-05-25 01:44:28 +02:00
|
|
|
postInstall = ''
|
|
|
|
installShellCompletion --zsh _xwallpaper
|
|
|
|
'';
|
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2020-05-13 20:14:22 +02:00
|
|
|
homepage = "https://github.com/stoeckmann/xwallpaper";
|
|
|
|
description = "Utility for setting wallpapers in X";
|
|
|
|
license = licenses.isc;
|
|
|
|
maintainers = with maintainers; [ ivar ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|