|
1 | | -{ pkgs, stdenv, src, version, revision }: |
2 | | - |
3 | | -stdenv.mkDerivation { |
4 | | - pname = "nim-sds-nimble-deps"; |
5 | | - version = "${version}-${revision}"; |
6 | | - |
7 | | - inherit src; |
8 | | - |
9 | | - nativeBuildInputs = with pkgs; [ |
10 | | - jq rsync git nimble cacert moreutils |
11 | | - ]; |
12 | | - |
13 | | - configurePhase = '' |
14 | | - export XDG_CACHE_HOME=$TMPDIR |
15 | | - export NIMBLE_DIR=$NIX_BUILD_TOP/nimbledir |
16 | | - export HOME=$TMPDIR |
17 | | - ''; |
18 | | - |
19 | | - buildPhase = '' |
20 | | - nimble --version |
21 | | - nimble --silent --localdeps setup |
22 | | - nimble --silent --localdeps install -y --depsOnly |
23 | | - ''; |
24 | | - |
25 | | - installPhase = '' |
26 | | - mkdir -p $out/nimbledeps |
27 | | -
|
28 | | - cp nimble.paths $out/nimble.paths |
29 | | -
|
30 | | - rsync -ra \ |
31 | | - --prune-empty-dirs \ |
32 | | - --include='*/' \ |
33 | | - --include='*.json' \ |
34 | | - --include='*.nim' \ |
35 | | - --include='*.nimble' \ |
36 | | - --exclude='*' \ |
37 | | - $NIMBLE_DIR/pkgs2 $out/nimbledeps |
38 | | - ''; |
39 | | - |
40 | | - fixupPhase = '' |
41 | | - # Replace build path with deterministic $out. |
42 | | - sed "s|$NIMBLE_DIR|./nimbledeps|g" $out/nimble.paths \ |
43 | | - | sort | sponge $out/nimble.paths |
44 | | -
|
45 | | - # Nimble does not maintain order of files list. |
46 | | - for META_FILE in $(find $out -name nimblemeta.json); do |
47 | | - jq '.metaData.files |= sort' $META_FILE | sponge $META_FILE |
48 | | - done |
49 | | - ''; |
50 | | - |
51 | | - # Make this a fixed-output derivation to allows internet access for Nimble. |
52 | | - outputHash = "sha256-OnirsXLj4HMVTbk+b4fcC+1K9MSMJyae6I7JO16WDno="; |
53 | | - outputHashAlgo = "sha256"; |
54 | | - outputHashMode = "recursive"; |
| 1 | +# AUTOGENERATED from nimble.lock — do not edit manually. |
| 2 | +# Regenerate with: ./tools/gen-nix-deps.sh nimble.lock nix/deps.nix |
| 3 | +{ pkgs }: |
| 4 | + |
| 5 | +{ |
| 6 | + unittest2 = pkgs.fetchgit { |
| 7 | + url = "https://github.com/status-im/nim-unittest2"; |
| 8 | + rev = "26f2ef3ae0ec72a2a75bfe557e02e88f6a31c189"; |
| 9 | + sha256 = "1n8n36kad50m97b64y7bzzknz9n7szffxhp0bqpk3g2v7zpda8sw"; |
| 10 | + fetchSubmodules = true; |
| 11 | + }; |
| 12 | + |
| 13 | + bearssl = pkgs.fetchgit { |
| 14 | + url = "https://github.com/status-im/nim-bearssl"; |
| 15 | + rev = "11e798b62b8e6beabe958e048e9e24c7e0f9ee63"; |
| 16 | + sha256 = "0qx36iiawrhmx9qjqcyfvz0134ph9dy8ryq3ch8d31gq6ir7aw84"; |
| 17 | + fetchSubmodules = true; |
| 18 | + }; |
| 19 | + |
| 20 | + bearssl_pkey_decoder = pkgs.fetchgit { |
| 21 | + url = "https://github.com/vacp2p/bearssl_pkey_decoder"; |
| 22 | + rev = "21dd3710df9345ed2ad8bf8f882761e07863b8e0"; |
| 23 | + sha256 = "0bl3f147zmkazbhdkr4cj1nipf9rqiw3g4hh1j424k9hpl55zdpg"; |
| 24 | + fetchSubmodules = true; |
| 25 | + }; |
| 26 | + |
| 27 | + results = pkgs.fetchgit { |
| 28 | + url = "https://github.com/arnetheduck/nim-results"; |
| 29 | + rev = "df8113dda4c2d74d460a8fa98252b0b771bf1f27"; |
| 30 | + sha256 = "1h7amas16sbhlr7zb7n3jb5434k98ji375vzw72k1fsc86vnmcr9"; |
| 31 | + fetchSubmodules = true; |
| 32 | + }; |
| 33 | + |
| 34 | + stew = pkgs.fetchgit { |
| 35 | + url = "https://github.com/status-im/nim-stew"; |
| 36 | + rev = "b66168735d6f3841c5239c3169d3fe5fe98b1257"; |
| 37 | + sha256 = "10n71vfa6klzd9dmal96jy0hiqk04gaj8wc9g91z6fclryf0yq92"; |
| 38 | + fetchSubmodules = true; |
| 39 | + }; |
| 40 | + |
| 41 | + faststreams = pkgs.fetchgit { |
| 42 | + url = "https://github.com/status-im/nim-faststreams"; |
| 43 | + rev = "ce27581a3e881f782f482cb66dc5b07a02bd615e"; |
| 44 | + sha256 = "0y6bw2scnmr8cxj4fg18w7f34l2bh9qwg5nhlgd84m9fpr5bqarn"; |
| 45 | + fetchSubmodules = true; |
| 46 | + }; |
| 47 | + |
| 48 | + serialization = pkgs.fetchgit { |
| 49 | + url = "https://github.com/status-im/nim-serialization"; |
| 50 | + rev = "b0f2fa32960ea532a184394b0f27be37bd80248b"; |
| 51 | + sha256 = "0wip1fjx7ka39ck1g1xvmyarzq1p5dlngpqil6zff8k8z5skiz27"; |
| 52 | + fetchSubmodules = true; |
| 53 | + }; |
| 54 | + |
| 55 | + json_serialization = pkgs.fetchgit { |
| 56 | + url = "https://github.com/status-im/nim-json-serialization"; |
| 57 | + rev = "c343b0e243d9e17e2c40f3a8a24340f7c4a71d44"; |
| 58 | + sha256 = "0i8sq51nqj8lshf6bfixaz9a7sq0ahsbvq3chkxdvv4khsqvam91"; |
| 59 | + fetchSubmodules = true; |
| 60 | + }; |
| 61 | + |
| 62 | + testutils = pkgs.fetchgit { |
| 63 | + url = "https://github.com/status-im/nim-testutils"; |
| 64 | + rev = "e4d37dc1652d5c63afb89907efb5a5e812261797"; |
| 65 | + sha256 = "0nv0a9jm5b1rn3y52cxvyj8xz3jg235mp0xbirfp2cda0icgy1si"; |
| 66 | + fetchSubmodules = true; |
| 67 | + }; |
| 68 | + |
| 69 | + chronicles = pkgs.fetchgit { |
| 70 | + url = "https://github.com/status-im/nim-chronicles"; |
| 71 | + rev = "27ec507429a4eb81edc20f28292ee8ec420be05b"; |
| 72 | + sha256 = "1xx9fcfwgcaizq3s7i3s03mclz253r5j8va38l9ycl19fcbc96z9"; |
| 73 | + fetchSubmodules = true; |
| 74 | + }; |
| 75 | + |
| 76 | + httputils = pkgs.fetchgit { |
| 77 | + url = "https://github.com/status-im/nim-http-utils"; |
| 78 | + rev = "c53852d9e24205b6363bba517fa8ee7bde823691"; |
| 79 | + sha256 = "1b332smfyp2yvhvfjrfqy4kvh9pc5w6hqh17f1yclz5z1j5xdpf1"; |
| 80 | + fetchSubmodules = true; |
| 81 | + }; |
| 82 | + |
| 83 | + chronos = pkgs.fetchgit { |
| 84 | + url = "https://github.com/status-im/nim-chronos"; |
| 85 | + rev = "0646c444fce7c7ed08ef6f2c9a7abfd172ffe655"; |
| 86 | + sha256 = "1r499jl0lhnjq7hgddwgjl0gh3y1mprnqkhk0h6yh3cwgsmr5ym9"; |
| 87 | + fetchSubmodules = true; |
| 88 | + }; |
| 89 | + |
| 90 | + dnsclient = pkgs.fetchgit { |
| 91 | + url = "https://github.com/ba0f3/dnsclient.nim"; |
| 92 | + rev = "23214235d4784d24aceed99bbfe153379ea557c8"; |
| 93 | + sha256 = "03mf3lw5c0m5nq9ppa49nylrl8ibkv2zzlc0wyhqg7w09kz6hks6"; |
| 94 | + fetchSubmodules = true; |
| 95 | + }; |
| 96 | + |
| 97 | + jwt = pkgs.fetchgit { |
| 98 | + url = "https://github.com/vacp2p/nim-jwt.git"; |
| 99 | + rev = "18f8378de52b241f321c1f9ea905456e89b95c6f"; |
| 100 | + sha256 = "1986czmszdxj6g9yr7xn1fx8y2y9mwpb3f1bn9nc6973qawsdm0p"; |
| 101 | + fetchSubmodules = true; |
| 102 | + }; |
| 103 | + |
| 104 | + nimcrypto = pkgs.fetchgit { |
| 105 | + url = "https://github.com/cheatfate/nimcrypto"; |
| 106 | + rev = "b3dbc9c4d08e58c5b7bfad6dc7ef2ee52f2f4c08"; |
| 107 | + sha256 = "1v4rz42lwcazs6isi3kmjylkisr84mh0kgmlqycx4i885dn3g0l4"; |
| 108 | + fetchSubmodules = true; |
| 109 | + }; |
| 110 | + |
| 111 | + metrics = pkgs.fetchgit { |
| 112 | + url = "https://github.com/status-im/nim-metrics"; |
| 113 | + rev = "11d0cddfb0e711aa2a8c75d1892ae24a64c299fc"; |
| 114 | + sha256 = "1jrf2cf7v3iqjsk6grzvivxic1shhaxnvab6d35rxs2kcy6b5dv0"; |
| 115 | + fetchSubmodules = true; |
| 116 | + }; |
| 117 | + |
| 118 | + secp256k1 = pkgs.fetchgit { |
| 119 | + url = "https://github.com/status-im/nim-secp256k1"; |
| 120 | + rev = "d8f1288b7c72f00be5fc2c5ea72bf5cae1eafb15"; |
| 121 | + sha256 = "1qjrmwbngb73f6r1fznvig53nyal7wj41d1cmqfksrmivk2sgrn2"; |
| 122 | + fetchSubmodules = true; |
| 123 | + }; |
| 124 | + |
| 125 | + zlib = pkgs.fetchgit { |
| 126 | + url = "https://github.com/status-im/nim-zlib"; |
| 127 | + rev = "e680f269fb01af2c34a2ba879ff281795a5258fe"; |
| 128 | + sha256 = "1xw9f1gjsgqihdg7kdkbaq1wankgnx2vn9l3ihc6nqk2jzv5bvk5"; |
| 129 | + fetchSubmodules = true; |
| 130 | + }; |
| 131 | + |
| 132 | + websock = pkgs.fetchgit { |
| 133 | + url = "https://github.com/status-im/nim-websock"; |
| 134 | + rev = "35ae76f1559e835c80f9c1a3943bf995d3dd9eb5"; |
| 135 | + sha256 = "1j6dklzb6b6bv2aiglbiyflja2vdpmyxfirv98f49y62mykq0yrw"; |
| 136 | + fetchSubmodules = true; |
| 137 | + }; |
| 138 | + |
| 139 | + lsquic = pkgs.fetchgit { |
| 140 | + url = "https://github.com/vacp2p/nim-lsquic"; |
| 141 | + rev = "4fb03ee7bfb39aecb3316889fdcb60bec3d0936f"; |
| 142 | + sha256 = "0qdhcd4hyp185szc9sv3jvwdwc9zp3j0syy7glxv13k9bchfmkfg"; |
| 143 | + fetchSubmodules = true; |
| 144 | + }; |
| 145 | + |
| 146 | + libp2p = pkgs.fetchgit { |
| 147 | + url = "https://github.com/vacp2p/nim-libp2p"; |
| 148 | + rev = "ca48c3718246bb411ff0e354a70cb82d9a28de0d"; |
| 149 | + sha256 = "07qfjjrq6w7bj9dbchvcrpla47jidngbrgmigbhl7fh3cfkdabc9"; |
| 150 | + fetchSubmodules = true; |
| 151 | + }; |
| 152 | + |
| 153 | + stint = pkgs.fetchgit { |
| 154 | + url = "https://github.com/status-im/nim-stint"; |
| 155 | + rev = "470b7892561b5179ab20bd389a69217d6213fe58"; |
| 156 | + sha256 = "1isfwmbj98qfi5pm9acy0yyvq0vlz38nxp30xl43jx2mmaga2w22"; |
| 157 | + fetchSubmodules = true; |
| 158 | + }; |
| 159 | + |
| 160 | + taskpools = pkgs.fetchgit { |
| 161 | + url = "https://github.com/status-im/nim-taskpools"; |
| 162 | + rev = "9e8ccc754631ac55ac2fd495e167e74e86293edb"; |
| 163 | + sha256 = "1y78l33vdjxmb9dkr455pbphxa73rgdsh8m9gpkf4d9b1wm1yivy"; |
| 164 | + fetchSubmodules = true; |
| 165 | + }; |
| 166 | + |
55 | 167 | } |
0 commit comments