Skip to content

Commit 55a5190

Browse files
committed
libdeltachat: use fetchCargoVendor
1 parent 6c4d710 commit 55a5190

File tree

3 files changed

+8
-14
lines changed

3 files changed

+8
-14
lines changed

pkgs/by-name/de/deltachat-repl/package.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
rustPlatform.buildRustPackage {
77
pname = "deltachat-repl";
88

9-
inherit (libdeltachat) version src cargoLock buildInputs;
9+
inherit (libdeltachat) version src cargoDeps buildInputs;
1010

1111
nativeBuildInputs = [
1212
pkg-config

pkgs/by-name/de/deltachat-rpc-server/package.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
rustPlatform.buildRustPackage {
77
pname = "deltachat-rpc-server";
88

9-
inherit (libdeltachat) version src cargoLock buildInputs;
9+
inherit (libdeltachat) version src cargoDeps buildInputs;
1010

1111
nativeBuildInputs = [
1212
pkg-config

pkgs/by-name/li/libdeltachat/package.nix

Lines changed: 6 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -18,16 +18,7 @@
1818
, libiconv
1919
}:
2020

21-
let
22-
cargoLock = {
23-
lockFile = ./Cargo.lock;
24-
outputHashes = {
25-
"email-0.0.20" = "sha256-rV4Uzqt2Qdrfi5Ti1r+Si1c2iW1kKyWLwOgLkQ5JGGw=";
26-
"encoded-words-0.2.0" = "sha256-KK9st0hLFh4dsrnLd6D8lC6pRFFs8W+WpZSGMGJcosk=";
27-
"lettre-0.9.2" = "sha256-+hU1cFacyyeC9UGVBpS14BWlJjHy90i/3ynMkKAzclk=";
28-
};
29-
};
30-
in stdenv.mkDerivation rec {
21+
stdenv.mkDerivation rec {
3122
pname = "libdeltachat";
3223
version = "1.148.7";
3324

@@ -42,7 +33,11 @@ in stdenv.mkDerivation rec {
4233
./no-static-lib.patch
4334
];
4435

45-
cargoDeps = rustPlatform.importCargoLock cargoLock;
36+
cargoDeps = rustPlatform.fetchCargoVendor {
37+
pname = "deltachat-core-rust";
38+
inherit version src;
39+
hash = "sha256-eDj8DIvvWWj+tfHuzR35WXlKY5klGxW+MixdN++vugk=";
40+
};
4641

4742
nativeBuildInputs = [
4843
cmake
@@ -78,7 +73,6 @@ in stdenv.mkDerivation rec {
7873
'';
7974

8075
passthru = {
81-
inherit cargoLock;
8276
tests = {
8377
inherit deltachat-desktop deltachat-repl deltachat-rpc-server;
8478
python = python3.pkgs.deltachat;

0 commit comments

Comments
 (0)