diff options
author | nyanloutre <paul@nyanlout.re> | 2018-11-20 09:45:02 +0100 |
---|---|---|
committer | nyanloutre <paul@nyanlout.re> | 2018-11-20 09:45:02 +0100 |
commit | 05166dcce12118b167910f5149d1407826c9ecd5 (patch) | |
tree | 00057bf3941b44d13c3efb5433f4b31338ec64ae /pkgs/applications/video/makemkv | |
parent | 30bc36c64e11ca8d7ad3488a3708fce6a6ef57ea (diff) |
makemkv: using two URLs for src
This will prevent future failures due to the first URL being broken each time a new version is released See https://github.com/NixOS/nixpkgs/pull/50437#issuecomment-439329862 for details
Diffstat (limited to 'pkgs/applications/video/makemkv')
-rw-r--r-- | pkgs/applications/video/makemkv/default.nix | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/pkgs/applications/video/makemkv/default.nix b/pkgs/applications/video/makemkv/default.nix index aa226d4bfb367..cadd3c9fc68c7 100644 --- a/pkgs/applications/video/makemkv/default.nix +++ b/pkgs/applications/video/makemkv/default.nix @@ -7,13 +7,20 @@ stdenv.mkDerivation rec { ver = "1.14.1"; builder = ./builder.sh; + # Using two URLs as the first one will break as soon as a new version is released src_bin = fetchurl { - url = "http://www.makemkv.com/download/makemkv-bin-${ver}.tar.gz"; + urls = [ + "http://www.makemkv.com/download/makemkv-bin-${ver}.tar.gz" + "http://www.makemkv.com/download/old/makemkv-bin-${ver}.tar.gz" + ]; sha256 = "1n4gjb1531gkvnjzipw63v3zdxmrq5nai9nn6m2ix3lskksjrrhp"; }; src_oss = fetchurl { - url = "http://www.makemkv.com/download/makemkv-oss-${ver}.tar.gz"; + urls = [ + "http://www.makemkv.com/download/makemkv-oss-${ver}.tar.gz" + "http://www.makemkv.com/download/old/makemkv-oss-${ver}.tar.gz" + ]; sha256 = "0ysb0nm11vp2ni838p5q3gqan5nrqbr7rz0h24j8p62827pib3pw"; }; |