From 9f6de2029204d2c380f503d76f4c96fe5f3fcdbd Mon Sep 17 00:00:00 2001 From: Evils Date: Mon, 17 May 2021 09:38:56 +0200 Subject: [PATCH] kicad: correctly handle share/metainfo and appdata fixes issue 123299 blindly linking unstable's metainfo resulted in a dangling symlink this is still share/appdata in the stable package so i linked that --- pkgs/applications/science/electronics/kicad/default.nix | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pkgs/applications/science/electronics/kicad/default.nix b/pkgs/applications/science/electronics/kicad/default.nix index 79a044a800c5..770b73c71244 100644 --- a/pkgs/applications/science/electronics/kicad/default.nix +++ b/pkgs/applications/science/electronics/kicad/default.nix @@ -257,9 +257,12 @@ stdenv.mkDerivation rec { postInstall = '' mkdir -p $out/share ln -s ${base}/share/applications $out/share/applications - ln -s ${base}/share/metainfo $out/share/metainfo ln -s ${base}/share/icons $out/share/icons ln -s ${base}/share/mime $out/share/mime + '' + optionalString (stable) '' + ln -s ${base}/share/appdata $out/share/appdata + '' + optionalString (!stable) '' + ln -s ${base}/share/metainfo $out/share/metainfo ''; # can't run this for each pname