unison/shell-common.nix
John Ericson 732fd83ab1 Use a newer try-reflex that may help avoid world-rebuilds
Testing building on Darwin and Linux.
2015-07-16 13:45:30 -07:00

17 lines
491 B
Nix

nameRaw: plats: let
name = "unison-${nameRaw}";
localPkgs = import <nixpkgs> {};
unisonPkgs = import ./env.nix;
addCabalInstall = drv: {
buildDepends = drv.buildDepends ++ [ localPkgs.haskellPackages.cabal-install ];
};
in with builtins; with unisonPkgs.nixpkgs.stdenv.lib; let
f = plat: {
name = plat;
value = (unisonPkgs.nixpkgs.haskell.lib.overrideCabal
(getAttr name (getAttr plat unisonPkgs))
addCabalInstall).env;
};
in listToAttrs (map f plats)