mirror of
https://github.com/nmasur/dotfiles
synced 2024-12-29 13:14:53 +00:00
16 lines
475 B
Nix
16 lines
475 B
Nix
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;
|
|
installPhase = "install -Dm644 ${src} $out/share/mpv/scripts/delete_file.lua";
|
|
passthru.scriptName = "delete_file.lua";
|
|
};
|
|
};
|
|
}
|