/
cardano-binary.nix
66 lines (66 loc) · 1.94 KB
/
cardano-binary.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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
{ system, compiler, flags, pkgs, hsPkgs, pkgconfPkgs, ... }:
{
flags = { development = false; };
package = {
specVersion = "1.10";
identifier = { name = "cardano-binary"; version = "1.5.0"; };
license = "MIT";
copyright = "2019 IOHK";
maintainer = "operations@iohk.io";
author = "IOHK";
homepage = "";
url = "";
synopsis = "Binary serialization for Cardano";
description = "This package includes the binary serialization format for Cardano";
buildType = "Simple";
};
components = {
"library" = {
depends = [
(hsPkgs.base)
(hsPkgs.aeson)
(hsPkgs.bytestring)
(hsPkgs.cardano-prelude)
(hsPkgs.cborg)
(hsPkgs.containers)
(hsPkgs.digest)
(hsPkgs.formatting)
(hsPkgs.recursion-schemes)
(hsPkgs.safe-exceptions)
(hsPkgs.tagged)
(hsPkgs.text)
(hsPkgs.time)
(hsPkgs.vector)
];
};
tests = {
"test" = {
depends = [
(hsPkgs.base)
(hsPkgs.bytestring)
(hsPkgs.cardano-binary)
(hsPkgs.cardano-prelude)
(hsPkgs.cardano-prelude-test)
(hsPkgs.cborg)
(hsPkgs.containers)
(hsPkgs.formatting)
(hsPkgs.hedgehog)
(hsPkgs.hspec)
(hsPkgs.pretty-show)
(hsPkgs.QuickCheck)
(hsPkgs.quickcheck-instances)
(hsPkgs.tagged)
(hsPkgs.text)
(hsPkgs.vector)
];
};
};
};
} // {
src = (pkgs.lib).mkDefault (pkgs.fetchgit {
url = "https://github.com/input-output-hk/cardano-base";
rev = "0e26a4f00324100b4c34f2a9c7606ae03e94d7a2";
sha256 = "0l9lzk7aal1jbj0a1s9k2i5fw4wrzv3wl3jblgr41hqn76xhq82m";
});
postUnpack = "sourceRoot+=/binary; echo source root reset to \$sourceRoot";
}