8 stdenvNoCC.mkDerivation (finalAttrs: {
9 pname = "mpv-cheatsheet";
12 src = fetchFromGitHub {
14 repo = "mpv-cheatsheet";
15 rev = "v${finalAttrs.version}";
16 hash = "sha256-MWK0CYto3zgn3fivmL43tvgZn6XrjPxKLp0lgTFdplM=";
18 passthru.updateScript = gitUpdater { rev-prefix = "v"; };
20 nativeBuildInputs = [ nodePackages.browserify ];
25 make dist/${finalAttrs.passthru.scriptName}
33 install -D dist/${finalAttrs.passthru.scriptName} $out/share/mpv/scripts/${finalAttrs.passthru.scriptName}
38 passthru.scriptName = "cheatsheet.js";
41 description = "mpv script for looking up keyboard shortcuts";
42 homepage = "https://github.com/ento/mpv-cheatsheet";
43 license = licenses.mit;
44 maintainers = with maintainers; [ ambroisie ];