-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmtgox.nix
33 lines (32 loc) · 884 Bytes
/
mtgox.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
31
32
33
let
pkgs = import <nixpkgs> {};
haskellPackages = pkgs.haskellPackages;
cabal = haskellPackages.cabal;
in rec {
decimal = cabal.mkDerivation(self : {
pname = "Decimal";
version = "0.3.1";
sha256 = "12waaiis7z1isbyafjscnfiid6bsrfcgna0a2fa6gljalgnqzyb0";
isLibrary = true;
isExecutable = false;
buildDepends = with haskellPackages; [ HUnit QuickCheck testFrameworkQuickcheck2 testFrameworkHunit ];
}
);
mtgox =
cabal.mkDerivation (self: {
pname = "MtgoxTrader";
version = "0.0.1";
src = ./.;
isLibrary = false;
isExecutable = true;
buildDepends = with haskellPackages; [
decimal aeson time SHA httpConduit network
];
meta = {
description = "A simple Mt.Gox trading bot";
license = "WTFPL";
platforms = self.ghc.meta.platforms;
maintainers = [ ];
};
});
}