mpv: Specify licenses for shaders and plugins

This commit is contained in:
Simon Bruder 2021-01-03 13:37:28 +01:00
parent 5659b834d4
commit 8ae4f4080d
Signed by: simon
GPG key ID: 8D3C82F9F309F8EC

View file

@ -1,26 +1,34 @@
{ config, pkgs, ... }: { config, lib, pkgs, ... }:
let let
mpv-prescalers = pkgs.fetchFromGitHub { mpv-prescalers = pkgs.fetchFromGitHub {
owner = "bjin"; owner = "bjin";
repo = "mpv-prescalers"; repo = "mpv-prescalers";
rev = "b37d0f12223720f5ce48e149678162ae0a984176"; rev = "b37d0f12223720f5ce48e149678162ae0a984176";
sha256 = "1mmf5827qsyph0wqkyvi7zfng1cskkapngn5hf9073zc61n4398y"; sha256 = "1mmf5827qsyph0wqkyvi7zfng1cskkapngn5hf9073zc61n4398y";
meta.license = lib.licenses.lgpl3Plus;
}; };
shaders = { shaders = {
fsrcnnx_x2 = pkgs.fetchurl { fsrcnnx_x2 = pkgs.fetchurl {
url = "https://github.com/igv/FSRCNN-TensorFlow/releases/download/1.1/FSRCNNX_x2_16-0-4-1.glsl"; url = "https://github.com/igv/FSRCNN-TensorFlow/releases/download/1.1/FSRCNNX_x2_16-0-4-1.glsl";
sha256 = "1ik99yb424r6qzq4j9pp244yx6c6sq6khqrhv9n6qv4ndi1h2qmq"; sha256 = "1ik99yb424r6qzq4j9pp244yx6c6sq6khqrhv9n6qv4ndi1h2qmq";
meta.license = lib.licenses.mit;
}; };
SSimDownscaler = pkgs.fetchurl { SSimDownscaler = pkgs.fetchurl {
url = "https://gist.github.com/igv/36508af3ffc84410fe39761d6969be10/raw/ac09db2c0664150863e85d5a4f9f0106b6443a12/SSimDownscaler.glsl"; url = "https://gist.github.com/igv/36508af3ffc84410fe39761d6969be10/raw/ac09db2c0664150863e85d5a4f9f0106b6443a12/SSimDownscaler.glsl";
sha256 = "1c3fp6llg0n8zdxadsg6g3kcvhqvikalbc9q61zgwvsx8q3d8rph"; sha256 = "1c3fp6llg0n8zdxadsg6g3kcvhqvikalbc9q61zgwvsx8q3d8rph";
meta.license = lib.licenses.lgpl3Plus;
}; };
KrigBilateral = pkgs.fetchurl { KrigBilateral = pkgs.fetchurl {
url = "https://gist.github.com/igv/a015fc885d5c22e6891820ad89555637/raw/c471ef6dcbd3c4a977e1c95dc40944ee38fad08a/KrigBilateral.glsl"; url = "https://gist.github.com/igv/a015fc885d5c22e6891820ad89555637/raw/c471ef6dcbd3c4a977e1c95dc40944ee38fad08a/KrigBilateral.glsl";
sha256 = "11s0h6i0y3h2nrfp6lax6hzwvjbn93akjr6d61jrmz09zdf1iwmc"; sha256 = "11s0h6i0y3h2nrfp6lax6hzwvjbn93akjr6d61jrmz09zdf1iwmc";
meta.license = lib.licenses.lgpl3Plus;
}; };
}; };
@ -39,6 +47,8 @@ let
mkdir -p $out/share/mpv/scripts/ mkdir -p $out/share/mpv/scripts/
cp pitchcontrol.lua $out/share/mpv/scripts cp pitchcontrol.lua $out/share/mpv/scripts
''; '';
meta.license = lib.licenses.isc;
}); });
gallery-view = pkgs.fetchFromGitHub { gallery-view = pkgs.fetchFromGitHub {
@ -46,6 +56,8 @@ let
repo = "mpv-gallery-view"; repo = "mpv-gallery-view";
rev = "5139d346de67e8dbee8c8983777026502d6bc627"; rev = "5139d346de67e8dbee8c8983777026502d6bc627";
sha256 = "1xcl31rpb6kp479kil4srkclw9ly565zavr65ary9s8795ygfcrs"; sha256 = "1xcl31rpb6kp479kil4srkclw9ly565zavr65ary9s8795ygfcrs";
meta.license = lib.licenses.gpl2;
}; };
cycleShaders = shaders: "cycle-values glsl-shaders ${builtins.concatStringsSep " " shaders}"; cycleShaders = shaders: "cycle-values glsl-shaders ${builtins.concatStringsSep " " shaders}";