Skip to content

Commit 5a99e17

Browse files
committed
Move server into root project
1 parent 1c3c4f2 commit 5a99e17

File tree

7 files changed

+67
-23
lines changed

7 files changed

+67
-23
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
*.gv.*
2+
dist
File renamed without changes.

botstrats.cabal

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: botstrats
2+
version: 0.1.0.0
3+
synopsis: A strategy game that makes you program robots
4+
homepage: https://github.com/shak-mar/botstrats
5+
license-file: LICENSE
6+
author: shak-mar
7+
maintainer: [email protected]
8+
category: Game
9+
build-type: Simple
10+
extra-source-files: README.md
11+
cabal-version: >=1.10
12+
13+
-- Versions:
14+
-- base >= 4.8 && < 4.9
15+
-- transformers >= 0.4 && < 0.5
16+
-- bytestring >= 0.10 && < 0.11
17+
-- directory >= 1.2 && < 1.3
18+
-- filepath >= 1.4 && < 1.5
19+
-- process >= 1.2 && < 1.3
20+
-- lens >= 4.11 && < 4.12
21+
-- network >= 2.6 && < 2.7
22+
-- mtl >= 2.2 && < 2.3
23+
-- aeson >= 0.9 && < 0.10
24+
-- uuid >= 1.3 && < 1.4
25+
-- random >= 1.1 && < 1.2
26+
-- gloss >= 1.9 && < 1.10
27+
28+
executable botstrats-server
29+
main-is: Main.hs
30+
build-depends: base >= 4.8 && < 4.9,
31+
random >= 1.1 && < 1.2,
32+
bytestring >= 0.10 && < 0.11,
33+
network >= 2.6 && < 2.7,
34+
transformers >= 0.4 && < 0.5,
35+
uuid >= 1.3 && < 1.4,
36+
mtl >= 2.2 && < 2.3
37+
hs-source-dirs: server
38+
default-language: Haskell2010

server/.gitignore

Lines changed: 0 additions & 1 deletion
This file was deleted.

server/botstrats-server.cabal

Lines changed: 0 additions & 13 deletions
This file was deleted.

server/shell.nix

Lines changed: 0 additions & 9 deletions
This file was deleted.

shell.nix

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
{ nixpkgs ? import <nixpkgs> {}, compiler ? "ghc7101" }:
2+
3+
let
4+
5+
inherit (nixpkgs) pkgs;
6+
7+
f = { cabal-install, mkDerivation, base, bytestring, mtl, network, random
8+
, stdenv, transformers, uuid
9+
}:
10+
mkDerivation {
11+
pname = "botstrats";
12+
version = "0.1.0.0";
13+
src = ./.;
14+
isLibrary = false;
15+
isExecutable = true;
16+
buildDepends = [ cabal-install
17+
base bytestring mtl network random transformers uuid
18+
];
19+
homepage = "https://github.com/shak-mar/botstrats";
20+
description = "A strategy game that makes you program robots";
21+
license = stdenv.lib.licenses.mit;
22+
};
23+
24+
drv = pkgs.haskell.packages.${compiler}.callPackage f {};
25+
26+
in
27+
28+
if pkgs.lib.inNixShell then drv.env else drv

0 commit comments

Comments
 (0)