depot/third_party/nixpkgs/pkgs/applications/video/mpv-shim-default-shaders/default.nix

30 lines
730 B
Nix
Raw Normal View History

{ lib, stdenv, fetchFromGitHub }:
stdenv.mkDerivation rec {
pname = "mpv-shim-default-shaders";
version = "2.1.0";
src = fetchFromGitHub {
owner = "iwalton3";
repo = "default-shader-pack";
rev = "v${version}";
sha256 = "sha256-BM2GvmUoWQUUMH464YIIqu5A1t1B+otbJxAGFbySuq8=";
};
installPhase = ''
mkdir -p $out/share/${pname}
cp -r shaders *.json $out/share/${pname}
'';
meta = with lib; {
homepage = "https://github.com/iwalton3/default-shader-pack";
description = "Preconfigured set of MPV shaders and configurations for MPV Shim media clients";
license = with licenses; [
gpl3Plus
mit
unlicense
];
maintainers = with maintainers; [ devusb ];
};
}