try refactoring overlays into flake inputs

This commit is contained in:
Noah Masur
2023-08-02 11:51:11 -04:00
parent 00564c0c40
commit e6d0852be0
8 changed files with 215 additions and 101 deletions

17
overlays/mpv-scripts.nix Normal file
View File

@ -0,0 +1,17 @@
_final: prev: inputs: {
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";
};
};
}