@@ -49,21 +49,14 @@ let
4949 (self: super: let
5050 pkgs = self.callPackage ({ pkgs }: pkgs) {};
5151 in {
52+ obelisk-executable-config = pkgs.obeliskExecutableConfig.haskellPackage self;
53+ obelisk-executable-config-inject = pkgs.obeliskExecutableConfig.platforms.web.inject self;
54+
5255 obelisk-asset-manifest = self.callCabal2nix "obelisk-asset-manifest" (hackGet ./lib/asset + "/manifest") {};
5356 obelisk-asset-serve-snap = self.callCabal2nix "obelisk-asset-serve-snap" (hackGet ./lib/asset + "/serve-snap") {};
5457 obelisk-backend = self.callCabal2nix "obelisk-backend" (cleanSource ./lib/backend) {};
5558 obelisk-cliapp = self.callCabal2nix "obelisk-cliapp" (cleanSource ./lib/cliapp) {};
56− obelisk-command = (self.callCabal2nix "obelisk-command" (cleanSource ./lib/command) {}).overrideAttrs
57− (drv: {
58− buildInputs = drv.buildInputs ++ [ pkgs.makeWrapper ];
59− postFixup = ''
60− ${drv.postFixup or ""}
61− # Make `ob` reference its runtime dependencies.
62− wrapProgram "$out"/bin/ob --prefix PATH : ${pkgs.lib.makeBinPath (commandRuntimeDeps pkgs)}
63− '';
64− });
65− obelisk-executable-config = pkgs.obeliskExecutableConfig.haskellPackage self;
66− obelisk-executable-config-inject = pkgs.obeliskExecutableConfig.platforms.web.inject self;
59+ obelisk-command = self.callCabal2nix "obelisk-command" (cleanSource ./lib/command) {};
6760 obelisk-frontend = self.callCabal2nix "obelisk-frontend" (cleanSource ./lib/frontend) {};
6861 obelisk-run = self.callCabal2nix "obelisk-run" (cleanSource ./lib/run) {};
6962 obelisk-route = self.callCabal2nix "obelisk-route" (cleanSource ./lib/route) {};
@@ -72,7 +65,6 @@ let
7265 obelisk-snap-extras = self.callCabal2nix "obelisk-snap-extras" (cleanSource ./lib/snap-extras) {};
7366 })
7467
75− # Dynamic linking with split objects dramatically increases startup time (about 0.5 seconds on a decent machine with SSD)
7668 (self: super: let
7769 pkgs = self.callPackage ({ pkgs }: pkgs) {};
7870 haskellLib = pkgs.haskell.lib;
@@ -97,7 +89,17 @@ let
9789 '';
9890 });
9991 in {
100− obelisk-command = addOptparseApplicativeCompletionScripts "ob" (haskellLib.justStaticExecutables super.obelisk-command);
92+ # Dynamic linking with split objects dramatically increases startup time (about
93+ # 0.5 seconds on a decent machine with SSD), so we do `justStaticExecutables`.
94+ obelisk-command = (addOptparseApplicativeCompletionScripts "ob"
95+ (haskellLib.justStaticExecutables super.obelisk-command)).overrideAttrs (drv: {
96+ buildInputs = drv.buildInputs ++ [ pkgs.makeWrapper ];
97+ postFixup = ''
98+ ${drv.postFixup or ""}
99+ # Make `ob` reference its runtime dependencies.
100+ wrapProgram "$out"/bin/ob --prefix PATH : ${pkgs.lib.makeBinPath (commandRuntimeDeps pkgs)}
101+ '';
102+ });
101103 obelisk-selftest = haskellLib.justStaticExecutables super.obelisk-selftest;
102104 })
103105