nix-files/pkgs/additional/mpv-uosc-latest/default.nix

27 lines
871 B
Nix
Raw Permalink Normal View History

{ lib
2023-07-27 11:45:28 +00:00
, fetchFromGitHub
, fetchFromGitea
, mpvScripts
2023-07-27 11:45:28 +00:00
}:
2023-07-27 12:16:09 +00:00
mpvScripts.uosc.overrideAttrs (upstream: {
2023-07-27 11:45:28 +00:00
version = "unstable-2023-07-26";
# src = fetchFromGitHub {
# owner = "tomasklaen";
# repo = "uosc";
# rev = "e783ad1f133e06a50d424291143d25497fbecfdd";
# hash = "sha256-FFl51Kv5eMNyB4LM4JmjJXDnd/XvvtXZbHsRpSkSGqE=";
# };
src = lib.warnIf (upstream.version != "4.7.0") "mpv-uosc-latest is behind nixpkgs mpvScripts.uosc ${upstream.version}" fetchFromGitea {
2023-07-27 11:45:28 +00:00
domain = "git.uninsane.org";
owner = "colin";
repo = "uosc";
rev = "dev/sane";
hash = "sha256-XOhryppod3zozYrPQlGBw298u+0/eS1MaDepV4p88cM=";
# for version > 4.7.0, we can use nixpkgs src and set `patches` to a fetch of my one custom commit
};
2023-07-27 12:16:09 +00:00
passthru = upstream.passthru // {
scriptName = "uosc";
};
2023-07-27 11:45:28 +00:00
postPatch = ""; # delete the outdated `path` fix
})