Skip to content

Commit 637d41e

Browse files
committed
add nix files
1 parent a56a89b commit 637d41e

File tree

2 files changed

+25
-0
lines changed

2 files changed

+25
-0
lines changed

default.nix

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
{ compiler ? "ghc863", pkgs ? import <nixpkgs> {} }:
2+
3+
let
4+
5+
haskellPackages = pkgs.haskell.packages.${compiler}.extend ( self: super: {
6+
});
7+
8+
runtime = haskellPackages.callCabal2nix "aws-lambda-haskell-runtime" ./. {};
9+
10+
in
11+
{
12+
aws-lambda-haskell-runtime = runtime;
13+
aws-lambda-haskell-runtime-shell = haskellPackages.shellFor {
14+
packages = p: [runtime];
15+
buildInputs = with pkgs; [
16+
cabal-install
17+
hlint
18+
stack
19+
haskellPackages.ghcid
20+
haskellPackages.weeder
21+
zlib
22+
];
23+
};
24+
}

shell.nix

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
(import ./. {}).aws-lambda-haskell-runtime-shell

0 commit comments

Comments
 (0)