1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-22 21:50:55 +00:00

lsof: use a pair of URLs to work when upstream updates

Fixes #9043 for future bumps.
This commit is contained in:
Vladimír Čunát 2015-07-29 17:46:05 +02:00
parent 8a8eb54148
commit af3261f7a2

View file

@ -5,7 +5,11 @@ stdenv.mkDerivation rec {
version = "4.89";
src = fetchurl {
url = "ftp://sunsite.ualberta.ca/pub/Mirror/lsof/lsof_${version}.tar.bz2";
urls = map (
# the tarball is moved after new version is released
isOld: "ftp://sunsite.ualberta.ca/pub/Mirror/lsof/"
+ "${stdenv.lib.optionalString isOld "OLD/"}lsof_${version}.tar.bz2"
) [ false true ];
sha256 = "061p18v0mhzq517791xkjs8a5dfynq1418a1mwxpji69zp2jzb41";
};