Idris-dev/stack-shell.nix

25 lines
416 B
Nix
Raw Normal View History

{ 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
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
]);
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
}