mpvpaper: init at 1.2.1
This commit is contained in:
parent
2a172dcba9
commit
984fc1a18b
65
pkgs/tools/wayland/mpvpaper/default.nix
Normal file
65
pkgs/tools/wayland/mpvpaper/default.nix
Normal file
@ -0,0 +1,65 @@
|
|||||||
|
{ stdenv
|
||||||
|
, lib
|
||||||
|
, meson
|
||||||
|
, cmake
|
||||||
|
, ninja
|
||||||
|
, wlroots
|
||||||
|
, wayland
|
||||||
|
, wayland-protocols
|
||||||
|
, egl-wayland
|
||||||
|
, glew-egl
|
||||||
|
, mpv
|
||||||
|
, pkg-config
|
||||||
|
, fetchFromGitHub
|
||||||
|
, makeWrapper
|
||||||
|
, installShellFiles
|
||||||
|
}:
|
||||||
|
|
||||||
|
stdenv.mkDerivation rec {
|
||||||
|
pname = "mpvpaper";
|
||||||
|
version = "1.2.1";
|
||||||
|
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = "GhostNaN";
|
||||||
|
repo = pname;
|
||||||
|
rev = version;
|
||||||
|
sha256 = "sha256-1+noph6iXM5OSNMFQyta/ttGyZQ6F7bWDQi8W190G5E=";
|
||||||
|
};
|
||||||
|
|
||||||
|
nativeBuildInputs = [
|
||||||
|
meson
|
||||||
|
ninja
|
||||||
|
pkg-config
|
||||||
|
makeWrapper
|
||||||
|
installShellFiles
|
||||||
|
];
|
||||||
|
|
||||||
|
buildInputs = [
|
||||||
|
wlroots
|
||||||
|
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 ];
|
||||||
|
};
|
||||||
|
}
|
@ -29117,6 +29117,8 @@ with pkgs;
|
|||||||
wrapMpv = callPackage ../applications/video/mpv/wrapper.nix { };
|
wrapMpv = callPackage ../applications/video/mpv/wrapper.nix { };
|
||||||
mpv = wrapMpv mpv-unwrapped {};
|
mpv = wrapMpv mpv-unwrapped {};
|
||||||
|
|
||||||
|
mpvpaper = callPackage ../tools/wayland/mpvpaper { };
|
||||||
|
|
||||||
mpvScripts = recurseIntoAttrs {
|
mpvScripts = recurseIntoAttrs {
|
||||||
autoload = callPackage ../applications/video/mpv/scripts/autoload.nix {};
|
autoload = callPackage ../applications/video/mpv/scripts/autoload.nix {};
|
||||||
convert = callPackage ../applications/video/mpv/scripts/convert.nix {};
|
convert = callPackage ../applications/video/mpv/scripts/convert.nix {};
|
||||||
|
Loading…
Reference in New Issue
Block a user