From 9d2bd32b7970fceafd2b20cb97f676932a89c54a Mon Sep 17 00:00:00 2001 From: Orivej Desh Date: Wed, 22 Nov 2017 09:04:41 +0000 Subject: [PATCH] tzdata: avoid symlink loop "./posix" -> ".." Fixes #31560 --- pkgs/data/misc/tzdata/default.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkgs/data/misc/tzdata/default.nix b/pkgs/data/misc/tzdata/default.nix index ef2bae8dbaf9..1b4d967af553 100644 --- a/pkgs/data/misc/tzdata/default.nix +++ b/pkgs/data/misc/tzdata/default.nix @@ -33,7 +33,8 @@ stdenv.mkDerivation rec { postInstall = '' rm $out/share/zoneinfo-posix - ln -s . $out/share/zoneinfo/posix + mkdir $out/share/zoneinfo/posix + ( cd $out/share/zoneinfo/posix; ln -s ../* .; rm posix ) mv $out/share/zoneinfo-leaps $out/share/zoneinfo/right mkdir -p "$dev/include"