Skip to content

Commit 25a45f9

Browse files
committed
fix(pkgs/cdt): Rewrite derivation with nix-init
1 parent b7d2ee3 commit 25a45f9

File tree

1 file changed

+22
-25
lines changed

1 file changed

+22
-25
lines changed

packages/cdt/default.nix

Lines changed: 22 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,15 @@
11
{
2-
clangStdenv,
3-
nodejs,
4-
fetchFromGitHub,
5-
pkgs,
62
lib,
3+
stdenv,
4+
fetchFromGitHub,
5+
cmake,
6+
git,
7+
python3,
78
}:
8-
clangStdenv.mkDerivation rec {
9-
name = "cdt";
9+
10+
stdenv.mkDerivation rec {
11+
pname = "cdt";
1012
version = "4.1.0";
11-
buildInputs = with pkgs; [
12-
llvm
13-
curl.dev
14-
gmp.dev
15-
openssl.dev
16-
libusb1.dev
17-
bzip2.dev
18-
(boost.override {
19-
enableShared = false;
20-
enabledStatic = true;
21-
})
22-
];
23-
nativeBuildInputs = with pkgs; [
24-
pkg-config
25-
cmake
26-
clang
27-
git
28-
python3
29-
];
3013

3114
src = fetchFromGitHub {
3215
owner = "AntelopeIO";
@@ -35,4 +18,18 @@ clangStdenv.mkDerivation rec {
3518
hash = "sha256-+s+W2MBc/G2SCuBOdxdq661h5Oz1IH3z3HosrOQAbYU=";
3619
fetchSubmodules = true;
3720
};
21+
22+
nativeBuildInputs = [
23+
cmake
24+
git
25+
python3
26+
];
27+
28+
meta = {
29+
description = "Contract Development Toolkit (CDT) is a suite of tools to facilitate C/C++ development of contracts for Antelope blockchains";
30+
homepage = "https://github.com/AntelopeIO/cdt";
31+
license = lib.licenses.mit;
32+
mainProgram = "cdt";
33+
platforms = lib.platforms.all;
34+
};
3835
}

0 commit comments

Comments
 (0)