git.iko.soy/typeable/nixpkgs
on master help sign in
parity: init at 1.8.10
commit5b3e44615bf65adc5d6498c1fe31784319722e74 authorAlexander Krupenkin <mail@akru.me> dateWed 21 Feb 2018, 12:11 (9 years ago) parent5037107
5 files changed+148
pkgs/applications/altcoins/default.nix+2 pkgs/applications/altcoins/parity/default.nix+7 pkgs/applications/altcoins/parity/parity.nix+37 pkgs/applications/altcoins/parity/patches/vendored-sources-1.8.patch+100 pkgs/top-level/all-packages.nix+2
pkgs/applications/altcoins/default.nix+2
@@ -67,4 +67,6 @@ rec {
6767 withGui = false;
6868 openssl = openssl_1_1_0;
6969 };
70+
71+ parity = callPackage ./parity { };
7072}
pkgs/applications/altcoins/parity/default.nixnew file+7
@@ -0,0 +1,7 @@
1+let
2+ version = "1.8.10";
3+ sha256 = "0slqfzyz11s6wjf77npgw4q6bcgkqmfm53daj47slxm6axkd954r";
4+ cargoSha256 = "0k0vqvmz2jr0lfzm8bfrshapgvxjr617shsg5m479m3r02p8l9l3";
5+ patches = [ ./patches/vendored-sources-1.8.patch ];
6+in
7+ import ./parity.nix { inherit version sha256 cargoSha256 patches; }
pkgs/applications/altcoins/parity/parity.nixnew file+37
@@ -0,0 +1,37 @@
1+{ version
2+, sha256
3+, cargoSha256
4+, patches
5+}:
6+
7+{ stdenv
8+, fetchFromGitHub
9+, rustPlatform
10+, pkgconfig
11+, openssl
12+, systemd
13+}:
14+
15+rustPlatform.buildRustPackage rec {
16+ name = "parity-${version}";
17+ inherit cargoSha256 patches;
18+
19+ src = fetchFromGitHub {
20+ owner = "paritytech";
21+ repo = "parity";
22+ rev = "v${version}";
23+ inherit sha256;
24+ };
25+
26+ buildInputs = [ pkgconfig systemd.lib systemd.dev openssl openssl.dev ];
27+
28+ # Some checks failed
29+ doCheck = false;
30+
31+ meta = with stdenv.lib; {
32+ description = "Fast, light, robust Ethereum implementation";
33+ homepage = http://parity.io;
34+ license = licenses.gpl3;
35+ maintainers = [ maintainers.akru ];
36+ };
37+}
pkgs/applications/altcoins/parity/patches/vendored-sources-1.8.patchnew file+100
@@ -0,0 +1,100 @@
1+diff --git a/.cargo/config b/.cargo/config
2+new file mode 100644
3+index 000000000..8dddda426
4+--- /dev/null
5++++ b/.cargo/config
6+@@ -0,0 +1,94 @@
7++[source."https://github.com/alexcrichton/mio-named-pipes"]
8++git = "https://github.com/alexcrichton/mio-named-pipes"
9++branch = "master"
10++replace-with = "vendored-sources"
11++
12++[source."https://github.com/nikvolf/parity-tokio-ipc"]
13++git = "https://github.com/nikvolf/parity-tokio-ipc"
14++branch = "master"
15++replace-with = "vendored-sources"
16++
17++[source."https://github.com/nikvolf/tokio-named-pipes"]
18++git = "https://github.com/nikvolf/tokio-named-pipes"
19++branch = "master"
20++replace-with = "vendored-sources"
21++
22++[source."https://github.com/paritytech/bn"]
23++git = "https://github.com/paritytech/bn"
24++branch = "master"
25++replace-with = "vendored-sources"
26++
27++[source."https://github.com/paritytech/hidapi-rs"]
28++git = "https://github.com/paritytech/hidapi-rs"
29++branch = "master"
30++replace-with = "vendored-sources"
31++
32++[source."https://github.com/paritytech/hyper"]
33++git = "https://github.com/paritytech/hyper"
34++branch = "master"
35++replace-with = "vendored-sources"
36++
37++[source."https://github.com/paritytech/js-precompiled.git"]
38++git = "https://github.com/paritytech/js-precompiled.git"
39++branch = "stable"
40++replace-with = "vendored-sources"
41++
42++[source."https://github.com/paritytech/jsonrpc.git"]
43++git = "https://github.com/paritytech/jsonrpc.git"
44++branch = "parity-1.8"
45++replace-with = "vendored-sources"
46++
47++[source."https://github.com/paritytech/libusb-rs"]
48++git = "https://github.com/paritytech/libusb-rs"
49++branch = "master"
50++replace-with = "vendored-sources"
51++
52++[source."https://github.com/paritytech/libusb-sys"]
53++git = "https://github.com/paritytech/libusb-sys"
54++branch = "master"
55++replace-with = "vendored-sources"
56++
57++[source."https://github.com/paritytech/nanomsg.rs.git"]
58++git = "https://github.com/paritytech/nanomsg.rs.git"
59++branch = "parity-1.7"
60++replace-with = "vendored-sources"
61++
62++[source."https://github.com/paritytech/rust-ctrlc.git"]
63++git = "https://github.com/paritytech/rust-ctrlc.git"
64++branch = "master"
65++replace-with = "vendored-sources"
66++
67++[source."https://github.com/paritytech/rust-rocksdb"]
68++git = "https://github.com/paritytech/rust-rocksdb"
69++branch = "master"
70++replace-with = "vendored-sources"
71++
72++[source."https://github.com/paritytech/rust-secp256k1"]
73++git = "https://github.com/paritytech/rust-secp256k1"
74++branch = "master"
75++replace-with = "vendored-sources"
76++
77++[source."https://github.com/paritytech/rust-snappy"]
78++git = "https://github.com/paritytech/rust-snappy"
79++branch = "master"
80++replace-with = "vendored-sources"
81++
82++[source."https://github.com/paritytech/trezor-sys"]
83++git = "https://github.com/paritytech/trezor-sys"
84++branch = "master"
85++replace-with = "vendored-sources"
86++
87++[source."https://github.com/paritytech/wasm-utils"]
88++git = "https://github.com/paritytech/wasm-utils"
89++branch = "master"
90++replace-with = "vendored-sources"
91++
92++[source."https://github.com/tailhook/rotor"]
93++git = "https://github.com/tailhook/rotor"
94++branch = "master"
95++replace-with = "vendored-sources"
96++
97++[source."https://github.com/tomusdrw/ws-rs"]
98++git = "https://github.com/tomusdrw/ws-rs"
99++branch = "master"
100++replace-with = "vendored-sources"
pkgs/top-level/all-packages.nix+2
@@ -14607,6 +14607,8 @@ with pkgs;
1460714607 dapp = self.altcoins.dapp;
1460814608 hevm = self.altcoins.hevm;
1460914609
14610+ parity = self.altcoins.parity;
14611+
1461014612 stellar-core = self.altcoins.stellar-core;
1461114613
1461214614 aumix = callPackage ../applications/audio/aumix {