/
cardano-crypto-test.nix
51 lines (51 loc) · 1.99 KB
/
cardano-crypto-test.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
{ system
, compiler
, flags
, pkgs
, hsPkgs
, pkgconfPkgs
, errorHandler
, config
, ... }:
{
flags = { development = false; };
package = {
specVersion = "1.10";
identifier = { name = "cardano-crypto-test"; version = "1.3.0"; };
license = "Apache-2.0";
copyright = "2018 IOHK";
maintainer = "operations@iohk.io";
author = "IOHK";
homepage = "";
url = "";
synopsis = "Test helpers from cardano-crypto exposed to other packages";
description = "Test helpers from cardano-crypto exposed to other packages";
buildType = "Simple";
isLocal = true;
};
components = {
"library" = {
depends = [
(hsPkgs."base" or (errorHandler.buildDepError "base"))
(hsPkgs."bytestring" or (errorHandler.buildDepError "bytestring"))
(hsPkgs."cardano-binary" or (errorHandler.buildDepError "cardano-binary"))
(hsPkgs."cardano-binary-test" or (errorHandler.buildDepError "cardano-binary-test"))
(hsPkgs."cardano-crypto" or (errorHandler.buildDepError "cardano-crypto"))
(hsPkgs."cardano-crypto-wrapper" or (errorHandler.buildDepError "cardano-crypto-wrapper"))
(hsPkgs."cardano-prelude" or (errorHandler.buildDepError "cardano-prelude"))
(hsPkgs."cardano-prelude-test" or (errorHandler.buildDepError "cardano-prelude-test"))
(hsPkgs."cryptonite" or (errorHandler.buildDepError "cryptonite"))
(hsPkgs."hedgehog" or (errorHandler.buildDepError "hedgehog"))
(hsPkgs."memory" or (errorHandler.buildDepError "memory"))
];
buildable = true;
};
};
} // {
src = (pkgs.lib).mkDefault (pkgs.fetchgit {
url = "https://github.com/input-output-hk/cardano-ledger-specs";
rev = "0294e7edd67a77c41dfdf4cd47af23dbefea0d9b";
sha256 = "10am5zd9fls005qy86idkc8ip0g23pmlqdhzg3ljqisa5c17zcsb";
});
postUnpack = "sourceRoot+=/byron/crypto/test; echo source root reset to \$sourceRoot";
}