mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-12 08:01:50 +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
pkgs/development/haskell-modules
|
@ -37,7 +37,7 @@ self: super: {
|
||||||
zeromq4-haskell = super.zeromq4-haskell.override { zeromq = pkgs.zeromq4; };
|
zeromq4-haskell = super.zeromq4-haskell.override { zeromq = pkgs.zeromq4; };
|
||||||
|
|
||||||
# These changes are required to support Darwin.
|
# 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;
|
dbus = if pkgs.stdenv.isLinux then self.dbus else null;
|
||||||
fdo-notify = if pkgs.stdenv.isLinux then self.fdo-notify 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;
|
hinotify = if pkgs.stdenv.isLinux then self.hinotify else self.fsnotify;
|
||||||
|
|
|
@ -40,8 +40,8 @@ rec {
|
||||||
enableLibraryProfiling = drv: overrideCabal drv (drv: { enableLibraryProfiling = true; });
|
enableLibraryProfiling = drv: overrideCabal drv (drv: { enableLibraryProfiling = true; });
|
||||||
disableLibraryProfiling = drv: overrideCabal drv (drv: { enableLibraryProfiling = false; });
|
disableLibraryProfiling = drv: overrideCabal drv (drv: { enableLibraryProfiling = false; });
|
||||||
|
|
||||||
enableSharedExecutables = drv: overrideCabal drv ( { enableSharedExecutables = true; });
|
enableSharedExecutables = drv: overrideCabal drv (drv: { enableSharedExecutables = true; });
|
||||||
disableSharedExecutables = drv: overrideCabal drv ( { enableSharedExecutables = false; });
|
disableSharedExecutables = drv: overrideCabal drv (drv: { enableSharedExecutables = false; });
|
||||||
|
|
||||||
enableSharedLibraries = drv: overrideCabal drv (drv: { enableSharedLibraries = true; });
|
enableSharedLibraries = drv: overrideCabal drv (drv: { enableSharedLibraries = true; });
|
||||||
disableSharedLibraries = drv: overrideCabal drv (drv: { enableSharedLibraries = false; });
|
disableSharedLibraries = drv: overrideCabal drv (drv: { enableSharedLibraries = false; });
|
||||||
|
|
Loading…
Reference in a new issue