Skip to content

Commit

Permalink
cachix: use separate bin output to prove it's useful
Browse files Browse the repository at this point in the history
Spares compilation time by not compiling the package twice.
  • Loading branch information
domenkozar committed Mar 29, 2019
1 parent bd06834 commit b06201b
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
2 changes: 2 additions & 0 deletions pkgs/development/haskell-modules/configuration-nix.nix
Expand Up @@ -94,6 +94,8 @@ self: super: builtins.intersectAttrs super {
# Won't find it's header files without help.
sfml-audio = appendConfigureFlag super.sfml-audio "--extra-include-dirs=${pkgs.openal}/include/AL";

cachix = enableSeparateBinOutput super.cachix;

hzk = overrideCabal super.hzk (drv: {
preConfigure = "sed -i -e /include-dirs/d hzk.cabal";
configureFlags = "--extra-include-dirs=${pkgs.zookeeper_mt}/include/zookeeper";
Expand Down
2 changes: 1 addition & 1 deletion pkgs/development/tools/cachix/default.nix
@@ -1,3 +1,3 @@
{ haskellPackages, haskell }:

haskell.lib.justStaticExecutables haskellPackages.cachix
(haskell.lib.doDistribute haskellPackages.cachix).bin
6 changes: 1 addition & 5 deletions pkgs/top-level/all-packages.nix
Expand Up @@ -9601,11 +9601,7 @@ in

c-blosc = callPackage ../development/libraries/c-blosc { };

cachix = (callPackage ../development/tools/cachix { }).overrideAttrs (drv: {
meta = drv.meta // {
hydraPlatforms = stdenv.lib.platforms.unix;
};
});
cachix = callPackage ../development/tools/cachix { };

capnproto = callPackage ../development/libraries/capnproto { };

Expand Down

0 comments on commit b06201b

Please sign in to comment.