mirror of
https://github.com/unisonweb/unison.git
synced 2024-09-25 01:08:30 +03:00
732fd83ab1
Testing building on Darwin and Linux.
17 lines
491 B
Nix
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)
|