mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-21 05:00:16 +00:00
git-annex: disable shared linking for this executable
git-annex has literally dozens of dependencies, and loading all of them at run-time can be slow (https://github.com/NixOS/nixpkgs/issues/4239).
This commit is contained in:
parent
44e1a086b9
commit
f145201b35
|
@ -37,7 +37,7 @@ self: super: {
|
|||
zeromq4-haskell = super.zeromq4-haskell.override { zeromq = pkgs.zeromq4; };
|
||||
|
||||
# These changes are required to support Darwin.
|
||||
git-annex = super.git-annex.override {
|
||||
git-annex = (disableSharedExecutables super.git-annex).override {
|
||||
dbus = if pkgs.stdenv.isLinux then self.dbus else null;
|
||||
fdo-notify = if pkgs.stdenv.isLinux then self.fdo-notify else null;
|
||||
hinotify = if pkgs.stdenv.isLinux then self.hinotify else self.fsnotify;
|
||||
|
|
|
@ -40,8 +40,8 @@ rec {
|
|||
enableLibraryProfiling = drv: overrideCabal drv (drv: { enableLibraryProfiling = true; });
|
||||
disableLibraryProfiling = drv: overrideCabal drv (drv: { enableLibraryProfiling = false; });
|
||||
|
||||
enableSharedExecutables = drv: overrideCabal drv ( { enableSharedExecutables = true; });
|
||||
disableSharedExecutables = drv: overrideCabal drv ( { enableSharedExecutables = false; });
|
||||
enableSharedExecutables = drv: overrideCabal drv (drv: { enableSharedExecutables = true; });
|
||||
disableSharedExecutables = drv: overrideCabal drv (drv: { enableSharedExecutables = false; });
|
||||
|
||||
enableSharedLibraries = drv: overrideCabal drv (drv: { enableSharedLibraries = true; });
|
||||
disableSharedLibraries = drv: overrideCabal drv (drv: { enableSharedLibraries = false; });
|
||||
|
|
Loading…
Reference in a new issue