nixpkgs/pkgs/tools/wayland/mpvpaper/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

66 lines
1.1 KiB
Nix
Raw Normal View History

2022-08-09 02:31:40 +00:00
{ stdenv
, lib
, meson
, ninja
, wayland
, wayland-protocols
, wayland-scanner
2022-08-09 02:31:40 +00:00
, egl-wayland
, glew-egl
, mpv
, pkg-config
, fetchFromGitHub
, makeWrapper
, installShellFiles
}:
stdenv.mkDerivation rec {
pname = "mpvpaper";
2023-11-29 02:30:02 +00:00
version = "1.4";
2022-08-09 02:31:40 +00:00
src = fetchFromGitHub {
owner = "GhostNaN";
repo = pname;
rev = version;
2023-11-29 02:30:02 +00:00
sha256 = "sha256-pJPoI47KKazVT6RfqyftZe+lPe6Kn2cllRSfq0twUpQ=";
2022-08-09 02:31:40 +00:00
};
strictDeps = true;
2022-08-09 02:31:40 +00:00
nativeBuildInputs = [
meson
ninja
pkg-config
makeWrapper
installShellFiles
wayland-scanner
2022-08-09 02:31:40 +00:00
];
buildInputs = [
wayland
wayland-protocols
egl-wayland
glew-egl
mpv
];
preInstall = ''
mv ../mpvpaper.man ../mpvpaper.1
'';
postInstall = ''
wrapProgram $out/bin/mpvpaper \
--prefix PATH : ${lib.makeBinPath [ mpv ]}
installManPage ../mpvpaper.1
'';
meta = with lib; {
description = "A video wallpaper program for wlroots based wayland compositors";
homepage = "https://github.com/GhostNaN/mpvpaper";
license = licenses.gpl3Only;
platforms = platforms.linux;
mainProgram = "mpvpaper";
maintainers = with maintainers; [ atila ];
};
}