504525a148
GitOrigin-RevId: bd645e8668ec6612439a9ee7e71f7eac4099d4f6
65 lines
1.1 KiB
Nix
65 lines
1.1 KiB
Nix
{ stdenv
|
|
, lib
|
|
, meson
|
|
, ninja
|
|
, wayland
|
|
, wayland-protocols
|
|
, wayland-scanner
|
|
, egl-wayland
|
|
, glew-egl
|
|
, mpv
|
|
, pkg-config
|
|
, fetchFromGitHub
|
|
, makeWrapper
|
|
, installShellFiles
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "mpvpaper";
|
|
version = "1.4";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "GhostNaN";
|
|
repo = pname;
|
|
rev = version;
|
|
sha256 = "sha256-pJPoI47KKazVT6RfqyftZe+lPe6Kn2cllRSfq0twUpQ=";
|
|
};
|
|
|
|
strictDeps = true;
|
|
nativeBuildInputs = [
|
|
meson
|
|
ninja
|
|
pkg-config
|
|
makeWrapper
|
|
installShellFiles
|
|
wayland-scanner
|
|
];
|
|
|
|
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 ];
|
|
};
|
|
}
|