nixpkgs/pkgs/tools/wayland/mpvpaper/default.nix
Florian Klink d025091b35 glew: enable both EGL and GLX
Re-roll of https://github.com/NixOS/nixpkgs/pull/328907, but this time
adding the patch from ArchLinux, which keeps both EGL and GLX code paths
active.

Remove overrides where EGL was explicitly requested previously, as well
as the glew-egl package variant.

Add an alias for glew-egl, in case there's any users of this outside
of nixpkgs.
2024-08-11 15:11:22 +03:00

66 lines
1.1 KiB
Nix

{ stdenv
, lib
, meson
, ninja
, wayland
, wayland-protocols
, wayland-scanner
, egl-wayland
, glew
, mpv
, pkg-config
, fetchFromGitHub
, makeWrapper
, installShellFiles
}:
stdenv.mkDerivation rec {
pname = "mpvpaper";
version = "1.7";
src = fetchFromGitHub {
owner = "GhostNaN";
repo = pname;
rev = version;
sha256 = "sha256-uBitJM2Z5RFH4nfgdJ6ZbqkcMumu+K+3f6S49G7nEx8=";
};
strictDeps = true;
nativeBuildInputs = [
meson
ninja
pkg-config
makeWrapper
installShellFiles
wayland-scanner
];
buildInputs = [
wayland
wayland-protocols
egl-wayland
glew
mpv
];
preInstall = ''
mv ../mpvpaper.man ../mpvpaper.1
'';
postInstall = ''
wrapProgram $out/bin/mpvpaper \
--prefix PATH : ${lib.makeBinPath [ mpv ]}
installManPage ../mpvpaper.1
'';
meta = with lib; {
description = "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 ];
};
}