1{
2 stdenv,
3 lib,
4 fetchFromGitHub,
5 autoconf,
6 automake,
7 libtool,
8 zlib,
9 cunit,
10 libxcrypt,
11}:
12stdenv.mkDerivation rec {
13 pname = "dcap";
14 version = "2.47.14";
15
16 src = fetchFromGitHub {
17 owner = "dCache";
18 repo = "dcap";
19 rev = version;
20 sha256 = "sha256-hn4nkFTIbSUUhvf9UfsEqVhphAdNWmATaCrv8jOuC0Y=";
21 };
22
23 nativeBuildInputs = [
24 autoconf
25 automake
26 libtool
27 ];
28 buildInputs = [
29 zlib
30 libxcrypt
31 ];
32
33 strictDeps = true;
34
35 preConfigure = ''
36 patchShebangs --build bootstrap.sh
37 ./bootstrap.sh
38 '';
39
40 doCheck = true;
41
42 checkInputs = [ cunit ];
43
44 outputs = [
45 "bin"
46 "dev"
47 "out"
48 "man"
49 "doc"
50 ];
51
52 meta = with lib; {
53 broken = stdenv.hostPlatform.isDarwin;
54 description = "dCache access protocol client library";
55 homepage = "https://github.com/dCache/dcap";
56 changelog = "https://github.com/dCache/dcap/blob/master/ChangeLog";
57 license = licenses.lgpl2Only;
58 platforms = platforms.all;
59 mainProgram = "dccp";
60 maintainers = with maintainers; [ ShamrockLee ];
61 };
62}