nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 66 lines 1.2 kB view raw
1{ 2 stdenv, 3 lib, 4 meson, 5 ninja, 6 wayland, 7 wayland-protocols, 8 wayland-scanner, 9 egl-wayland, 10 glew, 11 mpv, 12 pkg-config, 13 fetchFromGitHub, 14 makeWrapper, 15 installShellFiles, 16}: 17 18stdenv.mkDerivation (finalAttrs: { 19 pname = "mpvpaper"; 20 version = "1.8"; 21 22 src = fetchFromGitHub { 23 owner = "GhostNaN"; 24 repo = "mpvpaper"; 25 rev = finalAttrs.version; 26 sha256 = "sha256-JTlZSl8CZmWx7YTd0T58pwq10L1GKXNfAw0XlIsz7F8="; 27 }; 28 29 strictDeps = true; 30 nativeBuildInputs = [ 31 meson 32 ninja 33 pkg-config 34 makeWrapper 35 installShellFiles 36 wayland-scanner 37 ]; 38 39 buildInputs = [ 40 wayland 41 wayland-protocols 42 egl-wayland 43 glew 44 mpv 45 ]; 46 47 preInstall = '' 48 mv ../mpvpaper.man ../mpvpaper.1 49 ''; 50 51 postInstall = '' 52 wrapProgram $out/bin/mpvpaper \ 53 --prefix PATH : ${lib.makeBinPath [ mpv ]} 54 55 installManPage ../mpvpaper.1 56 ''; 57 58 meta = { 59 description = "Video wallpaper program for wlroots based wayland compositors"; 60 homepage = "https://github.com/GhostNaN/mpvpaper"; 61 license = lib.licenses.gpl3Only; 62 platforms = lib.platforms.linux; 63 mainProgram = "mpvpaper"; 64 maintainers = with lib.maintainers; [ atila ]; 65 }; 66})