dotfiles/overlays/mpv-scripts.nix

16 lines
475 B
Nix
Raw Permalink Normal View History

2023-08-03 01:50:26 +00:00
inputs: _final: prev: {
mpvScripts = prev.mpvScripts // {
# Delete current file after quitting
mpv-delete-file = prev.stdenv.mkDerivation rec {
pname = "mpv-delete-file";
version = "0.1"; # made-up
src = inputs.zenyd-mpv-scripts + "/delete_file.lua";
dontBuild = true;
dontUnpack = true;
2024-04-13 13:03:44 +00:00
installPhase = "install -Dm644 ${src} $out/share/mpv/scripts/delete_file.lua";
passthru.scriptName = "delete_file.lua";
};
};
}