mirror of
https://github.com/nmasur/dotfiles
synced 2024-11-24 10:55:36 +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";
|
|
};
|
|
};
|
|
}
|