diff options
author | Alyssa Ross <hi@alyssa.is> | 2024-01-06 02:12:23 +0100 |
---|---|---|
committer | Alyssa Ross <hi@alyssa.is> | 2024-01-06 02:12:23 +0100 |
commit | f34a1b70eb86e4a63cfb88ea460345bb1aed88e3 (patch) | |
tree | 32834d23912250e0c4b86aa4420baacf8091c0fe /nixpkgs/pkgs/applications/video/mpv/scripts/occivink.nix | |
parent | 003ab91dd67b093890db1dd0bab564345db6e496 (diff) | |
parent | 7a7cfff8915e06365bc2365ff33d4d413184fa9f (diff) | |
download | nixlib-f34a1b70eb86e4a63cfb88ea460345bb1aed88e3.tar nixlib-f34a1b70eb86e4a63cfb88ea460345bb1aed88e3.tar.gz nixlib-f34a1b70eb86e4a63cfb88ea460345bb1aed88e3.tar.bz2 nixlib-f34a1b70eb86e4a63cfb88ea460345bb1aed88e3.tar.lz nixlib-f34a1b70eb86e4a63cfb88ea460345bb1aed88e3.tar.xz nixlib-f34a1b70eb86e4a63cfb88ea460345bb1aed88e3.tar.zst nixlib-f34a1b70eb86e4a63cfb88ea460345bb1aed88e3.zip |
Merge branch 'nixos-unstable-small' of https://github.com/NixOS/nixpkgs
Conflicts: nixpkgs/pkgs/build-support/go/module.nix
Diffstat (limited to 'nixpkgs/pkgs/applications/video/mpv/scripts/occivink.nix')
-rw-r--r-- | nixpkgs/pkgs/applications/video/mpv/scripts/occivink.nix | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/nixpkgs/pkgs/applications/video/mpv/scripts/occivink.nix b/nixpkgs/pkgs/applications/video/mpv/scripts/occivink.nix index 167e2fef6ac0..f4ea27c1c1aa 100644 --- a/nixpkgs/pkgs/applications/video/mpv/scripts/occivink.nix +++ b/nixpkgs/pkgs/applications/video/mpv/scripts/occivink.nix @@ -1,5 +1,6 @@ { lib , fetchFromGitHub +, unstableGitUpdater , buildLua }: @@ -10,15 +11,16 @@ let in stringAsChars (c: if isUpper c != null then "-${toLower c}" else c); mkScript = name: args: - buildLua (lib.attrsets.recursiveUpdate rec { + let self = rec { pname = camelToKebab name; + version = "unstable-2023-12-18"; src = fetchFromGitHub { owner = "occivink"; repo = "mpv-scripts"; - rev = "af360f332897dda907644480f785336bc93facf1"; - hash = "sha256-KdCrUkJpbxxqmyUHksVVc8KdMn8ivJeUA2eerFZfEE8="; + rev = "f0426bd6b107b1f4b124552dae923b62f58ce3b6"; + hash = "sha256-oag5lcDoezyNXs5EBr0r0UE3ikeftvbfxSzfbxV1Oy0="; }; - version = "unstable-2022-10-02"; + passthru.updateScript = unstableGitUpdater {}; scriptPath = "scripts/${pname}.lua"; @@ -27,19 +29,17 @@ let license = licenses.unlicense; maintainers = with maintainers; [ nicoo ]; }; - } args); + + # Sadly needed to make `common-updaters` work here + pos = builtins.unsafeGetAttrPos "version" self; + }; + in buildLua (lib.attrsets.recursiveUpdate self args); in lib.mapAttrs (name: lib.makeOverridable (mkScript name)) { # Usage: `pkgs.mpv.override { scripts = [ pkgs.mpvScripts.seekTo ]; }` - seekTo = { - meta.description = "Mpv script for seeking to a specific position"; - outputHash = "sha256-3RlbtUivmeoR9TZ6rABiZSd5jd2lFv/8p/4irHMLshs="; - }; - - blacklistExtensions = { - meta.description = "Automatically remove playlist entries based on their extension."; - outputHash = "sha256-qw9lz8ofmvvh23F9aWLxiU4YofY+YflRETu+nxMhvVE="; - }; + seekTo.meta.description = "Mpv script for seeking to a specific position"; + blacklistExtensions.meta.description = + "Automatically remove playlist entries based on their extension."; } |