depot/third_party/nixpkgs/pkgs/tools/X11/xwallpaper/default.nix
Default email 5ca88bfbb9 Project import generated by Copybara.
GitOrigin-RevId: 9f918d616c5321ad374ae6cb5ea89c9e04bf3e58
2024-07-31 10:19:44 +00:00

41 lines
894 B
Nix

{ lib, stdenv
, fetchFromGitHub
, pkg-config
, autoreconfHook
, installShellFiles
, pixman
, xcbutil
, xcbutilimage
, libseccomp
, libjpeg
, libpng
, libXpm
}:
stdenv.mkDerivation rec {
pname = "xwallpaper";
version = "0.7.4";
src = fetchFromGitHub {
owner = "stoeckmann";
repo = "xwallpaper";
rev = "v${version}";
sha256 = "sha256-onxneLmXs1rYwpTzcnn+rbDboWVoEQgtGMHx/bMPRa8=";
};
nativeBuildInputs = [ pkg-config autoreconfHook installShellFiles ];
buildInputs = [ pixman xcbutilimage xcbutil libseccomp libjpeg libpng libXpm ];
postInstall = ''
installShellCompletion --zsh _xwallpaper
'';
meta = with lib; {
homepage = "https://github.com/stoeckmann/xwallpaper";
description = "Utility for setting wallpapers in X";
license = licenses.isc;
maintainers = [ ];
platforms = platforms.linux;
mainProgram = "xwallpaper";
};
}