2017-10-10 05:39:07 +03:00
|
|
|
{ ghc }:
|
2016-02-01 19:35:00 +03:00
|
|
|
with (import <nixpkgs> {});
|
|
|
|
|
|
|
|
let
|
2018-03-01 21:09:05 +03:00
|
|
|
libs = [
|
2018-07-30 05:02:56 +03:00
|
|
|
gmp
|
2016-02-01 19:35:00 +03:00
|
|
|
libffi
|
2016-06-20 22:44:20 +03:00
|
|
|
ncurses
|
2018-07-30 05:02:56 +03:00
|
|
|
nodejs
|
|
|
|
perl
|
|
|
|
zlib
|
2018-03-01 21:09:05 +03:00
|
|
|
];
|
|
|
|
native_libs = lib.optionals stdenv.isDarwin (with darwin.apple_sdk.frameworks; [
|
2016-02-01 19:35:00 +03:00
|
|
|
Cocoa
|
|
|
|
CoreServices
|
|
|
|
]);
|
|
|
|
|
2017-10-10 05:39:07 +03:00
|
|
|
in haskell.lib.buildStackProject {
|
|
|
|
inherit ghc;
|
2018-03-01 21:09:05 +03:00
|
|
|
nativeBuildInputs = native_libs;
|
|
|
|
buildInputs = libs;
|
2016-02-01 19:35:00 +03:00
|
|
|
name = "idrisBuildEnv";
|
2018-03-22 20:47:57 +03:00
|
|
|
src = if lib.inNixShell then null else ./.;
|
2016-02-01 19:35:00 +03:00
|
|
|
}
|