From 914f4e549a2ab540d8449e45f2dd8958e4ef46f2 Mon Sep 17 00:00:00 2001 From: emaryn Date: Sun, 9 Feb 2025 23:03:58 +0800 Subject: [PATCH] wcslib: fix noBrokenSymlinks --- pkgs/by-name/wc/wcslib/package.nix | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/pkgs/by-name/wc/wcslib/package.nix b/pkgs/by-name/wc/wcslib/package.nix index 95bb428218ca..d4f7dafa7bcf 100644 --- a/pkgs/by-name/wc/wcslib/package.nix +++ b/pkgs/by-name/wc/wcslib/package.nix @@ -23,6 +23,15 @@ stdenv.mkDerivation rec { "man" ]; + # DOCDIR is set to the path $out/share/doc/wcslib, and DOCLINK points + # to the same location. + # `$(LN_S) $(notdir $(DOCDIR)) $(DOCLINK)` effectively running: + # `ln -s wcslib $out/share/doc/wcslib` + # This produces a broken link because the target location already exists + postInstall = '' + rm $out/share/doc/wcslib/wcslib + ''; + meta = { homepage = "https://www.atnf.csiro.au/people/mcalabre/WCS/"; description = "World Coordinate System library for astronomy";