From f76c57ee32338c78c0d5a32e12cbc60adb4bcbf7 Mon Sep 17 00:00:00 2001 From: Alexander Krupenkin Date: Thu, 18 Oct 2018 15:03:26 +0300 Subject: [PATCH] parity: 1.11.10 -> 2.0.8; parity-beta: 2.0.3 -> 2.1.3 --- pkgs/applications/altcoins/parity/beta.nix | 10 +++--- pkgs/applications/altcoins/parity/default.nix | 8 ++--- ...-1.11.patch => vendored-sources-2.1.patch} | 36 ++----------------- 3 files changed, 13 insertions(+), 41 deletions(-) rename pkgs/applications/altcoins/parity/patches/{vendored-sources-1.11.patch => vendored-sources-2.1.patch} (67%) diff --git a/pkgs/applications/altcoins/parity/beta.nix b/pkgs/applications/altcoins/parity/beta.nix index fc772246cfc1..b2c9fdfd1eeb 100644 --- a/pkgs/applications/altcoins/parity/beta.nix +++ b/pkgs/applications/altcoins/parity/beta.nix @@ -1,7 +1,9 @@ let - version = "2.0.3"; - sha256 = "1yf3ln4ksk8613kqkpsh16cj8xwx761q6czy57rs8kfh7pgc2pzb"; - cargoSha256 = "1jayk4ngwbg0rv7x1slkl2z46czgy2hnfcxc0dhaz4xpbp2bjqq8"; - patches = [ ./patches/vendored-sources-2.0.patch ]; + version = "2.1.3"; + sha256 = "0il18r229r32jzwsjksp8cc63rp6cf6c0j5dvbfzrnv1zndw0cg3"; + cargoSha256 = "08dyb0lgf66zfq9xmfkhcn6rj070d49dm0rjl3v39sfag6sryz20"; + patches = [ + ./patches/vendored-sources-2.1.patch + ]; in import ./parity.nix { inherit version sha256 cargoSha256 patches; } diff --git a/pkgs/applications/altcoins/parity/default.nix b/pkgs/applications/altcoins/parity/default.nix index 234364e73364..b0286bf65837 100644 --- a/pkgs/applications/altcoins/parity/default.nix +++ b/pkgs/applications/altcoins/parity/default.nix @@ -1,7 +1,7 @@ let - version = "1.11.10"; - sha256 = "15sk6dvc8h1bdm6v7xlq517km0bakb9f13h1n7ixj311vahnmk15"; - cargoSha256 = "0p2idd36cyzp2ax81k533bdma4hz0ws2981qj2s7jnhvmj4941l8"; - patches = [ ./patches/vendored-sources-1.11.patch ]; + version = "2.0.8"; + sha256 = "1bz6dvx8wxhs3g447s62d9091sard2x7w2zd6iy7hf76wg0p73hr"; + cargoSha256 = "0wj93md87fr7a9ag73h0rd9xxqscl0lhbj3g3kvnqrqz9xxajing"; + patches = [ ./patches/vendored-sources-2.0.patch ]; in import ./parity.nix { inherit version sha256 cargoSha256 patches; } diff --git a/pkgs/applications/altcoins/parity/patches/vendored-sources-1.11.patch b/pkgs/applications/altcoins/parity/patches/vendored-sources-2.1.patch similarity index 67% rename from pkgs/applications/altcoins/parity/patches/vendored-sources-1.11.patch rename to pkgs/applications/altcoins/parity/patches/vendored-sources-2.1.patch index 733f6880ad9d..4af536cdf3cf 100644 --- a/pkgs/applications/altcoins/parity/patches/vendored-sources-1.11.patch +++ b/pkgs/applications/altcoins/parity/patches/vendored-sources-2.1.patch @@ -1,8 +1,8 @@ diff --git a/.cargo/config b/.cargo/config -index 72652ad2f..57c5c2f8f 100644 +index 72652ad2f..3c0eca89a 100644 --- a/.cargo/config +++ b/.cargo/config -@@ -1,3 +1,108 @@ +@@ -1,3 +1,78 @@ [target.x86_64-pc-windows-msvc] # Link the C runtime statically ; https://github.com/paritytech/parity/issues/6643 rustflags = ["-Ctarget-feature=+crt-static"] @@ -12,19 +12,9 @@ index 72652ad2f..57c5c2f8f 100644 +branch = "master" +replace-with = "vendored-sources" + -+[source."https://github.com/js-dist-paritytech/parity-master-1-10-shell.git"] -+git = "https://github.com/js-dist-paritytech/parity-master-1-10-shell.git" -+rev = "bd25b41cd642c6b822d820dded3aa601a29aa079" -+replace-with = "vendored-sources" -+ -+[source."https://github.com/js-dist-paritytech/parity-master-1-10-wallet.git"] -+git = "https://github.com/js-dist-paritytech/parity-master-1-10-wallet.git" -+rev = "4b6f112412716cd05123d32eeb7fda448288a6c6" -+replace-with = "vendored-sources" -+ +[source."https://github.com/nikvolf/parity-tokio-ipc"] +git = "https://github.com/nikvolf/parity-tokio-ipc" -+branch = "master" ++rev = "7c9bbe3bc45d8e72a92b0951acc877da228abd50" +replace-with = "vendored-sources" + +[source."https://github.com/nikvolf/tokio-named-pipes"] @@ -32,16 +22,6 @@ index 72652ad2f..57c5c2f8f 100644 +branch = "master" +replace-with = "vendored-sources" + -+[source."https://github.com/parity-js/dapp-wallet.git"] -+git = "https://github.com/parity-js/dapp-wallet.git" -+rev = "65deb02e7c007a0fd8aab0c089c93e3fd1de6f87" -+replace-with = "vendored-sources" -+ -+[source."https://github.com/parity-js/shell.git"] -+git = "https://github.com/parity-js/shell.git" -+rev = "eecaadcb9e421bce31e91680d14a20bbd38f92a2" -+replace-with = "vendored-sources" -+ +[source."https://github.com/paritytech/app-dirs-rs"] +git = "https://github.com/paritytech/app-dirs-rs" +branch = "master" @@ -87,21 +67,11 @@ index 72652ad2f..57c5c2f8f 100644 +branch = "master" +replace-with = "vendored-sources" + -+[source."https://github.com/paritytech/rust-rocksdb"] -+git = "https://github.com/paritytech/rust-rocksdb" -+branch = "master" -+replace-with = "vendored-sources" -+ +[source."https://github.com/paritytech/rust-secp256k1"] +git = "https://github.com/paritytech/rust-secp256k1" +branch = "master" +replace-with = "vendored-sources" + -+[source."https://github.com/paritytech/rust-snappy"] -+git = "https://github.com/paritytech/rust-snappy" -+branch = "master" -+replace-with = "vendored-sources" -+ +[source."https://github.com/paritytech/trezor-sys"] +git = "https://github.com/paritytech/trezor-sys" +branch = "master"