3
0
Fork 0
forked from mirrors/nixpkgs

spacecookie: add top-level attribute for haskellPackages.spacecookie

The haskellPackages.spacecookie derivation also includes a library and
thus a lot of propagated haskell dependencies. The top-level attribute
uses haskell.lib.justStaticExecutables and therefore only the
executable. This should reduce the runtime closure users have to
download considerably if they only want the server.
This commit is contained in:
sternenseemann 2021-03-19 22:43:34 +01:00 committed by sterni
parent d51edbe17e
commit 9c989f2fd9
2 changed files with 6 additions and 4 deletions

View file

@ -29,10 +29,9 @@ in {
package = mkOption {
type = types.package;
default = pkgs.haskellPackages.spacecookie;
example = literalExample ''
pkgs.haskell.lib.justStaticExecutables pkgs.haskellPackages.spacecookie
'';
default = pkgs.spacecookie;
defaultText = literalExample "pkgs.spacecookie";
example = literalExample "pkgs.haskellPackages.spacecookie";
description = ''
The spacecookie derivation to use. This can be used to
override the used package or to use another version.

View file

@ -19108,6 +19108,9 @@ in
sogo = callPackage ../servers/web-apps/sogo { };
spacecookie =
haskell.lib.justStaticExecutables haskellPackages.spacecookie;
spawn_fcgi = callPackage ../servers/http/spawn-fcgi { };
spring-boot-cli = callPackage ../development/tools/spring-boot-cli { };