-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathcrossy-toad.nix
30 lines (27 loc) · 1015 Bytes
/
crossy-toad.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
{ # Nix dependencies
mkDerivation, stdenv, darwin, hpack, cabal-install
# Haskell lib dependencies
, base, sdl2, sdl2-ttf, sdl2-image, linear, mtl, transformers, containers, lens, text, zippers
, monad-coroutine, megaparsec, directory, filepath
# Haskell test dependencies
, tasty, tasty-discover, tasty-hspec, hspec, tasty-hedgehog, hedgehog
# Extra executables
, flamegraph, ghc-prof-flamegraph, profiteur, imagemagick7
}:
mkDerivation {
pname = "crossy-toad";
version = "0.1.0.0";
src = ./.;
isLibrary = false;
isExecutable = true;
buildDepends = [
flamegraph ghc-prof-flamegraph cabal-install hpack profiteur
imagemagick7
] ++ (if stdenv.isDarwin then [darwin.apple_sdk.frameworks.OpenGL] else []);
executableHaskellDepends = [
base sdl2 sdl2-ttf sdl2-image linear mtl transformers containers lens text zippers
monad-coroutine megaparsec directory
tasty tasty-discover tasty-hspec hspec tasty-hedgehog hedgehog
];
license = stdenv.lib.licenses.bsd3;
}