nix: Disable building profiled or dynamic libraries by default
We never need dynamic haskell libraries, because even the dynamic builds only dynamically link non-haskell dependencies, but always link haskell dependencies statically. Profiled libraries are only required when running the memory test, so explicitly enable them for the profiled package. This also means, that we don't need to hide the memory test behind a feature flag anymore. The reason always was assumed to be the big number of rebuilds required for it. I assume ever since we moved off of static-haskell-nix and back to nixpkgs-based builds, we have been building profiled libraries for all our dependencies anway.
This commit is contained in:
@@ -7,7 +7,6 @@
|
||||
# We highly recommend that use the PostgREST binary cache by installing cachix
|
||||
# (https://app.cachix.org/) and running `cachix use postgrest`.
|
||||
{ docker ? false
|
||||
, memory ? false
|
||||
}:
|
||||
let
|
||||
postgrest =
|
||||
@@ -23,14 +22,14 @@ let
|
||||
postgrest.devTools
|
||||
postgrest.docs
|
||||
postgrest.loadtest
|
||||
postgrest.memory
|
||||
postgrest.nixpkgsTools
|
||||
postgrest.release
|
||||
postgrest.style
|
||||
postgrest.tests
|
||||
postgrest.withTools
|
||||
]
|
||||
++ lib.optional docker postgrest.docker
|
||||
++ lib.optional memory postgrest.memory;
|
||||
++ lib.optional docker postgrest.docker;
|
||||
|
||||
in
|
||||
lib.overrideDerivation postgrest.env (
|
||||
|
||||
Reference in New Issue
Block a user