diff options
Diffstat (limited to 'pkgs/development/compilers/dart/package-overrides/system-tray/default.nix')
-rw-r--r-- | pkgs/development/compilers/dart/package-overrides/system-tray/default.nix | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/pkgs/development/compilers/dart/package-overrides/system-tray/default.nix b/pkgs/development/compilers/dart/package-overrides/system-tray/default.nix new file mode 100644 index 000000000000..531d833a6998 --- /dev/null +++ b/pkgs/development/compilers/dart/package-overrides/system-tray/default.nix @@ -0,0 +1,18 @@ +{ libayatana-appindicator +}: + +{ ... }: + +{ preBuild ? "" +, ... +}: + +{ + preBuild = preBuild + '' + # $PUB_CACHE/hosted is a symlink to a store path. + mv $PUB_CACHE/hosted $PUB_CACHE/hosted_copy + cp -HR $PUB_CACHE/hosted_copy $PUB_CACHE/hosted + substituteInPlace $PUB_CACHE/hosted/pub.dev/system_tray-*/linux/tray.cc \ + --replace "libappindicator3.so.1" "${libayatana-appindicator}/lib/libayatana-appindicator3.so.1" + ''; +} |