tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
openct: unbreak, modernize
awwpotato
10 months ago
0f9261e0
9ff03ab0
+24
-13
1 changed file
expand all
collapse all
unified
split
pkgs
by-name
op
openct
package.nix
+24
-13
pkgs/by-name/op/openct/package.nix
···
3
stdenv,
4
fetchFromGitHub,
5
autoreconfHook,
0
0
6
pkg-config,
7
pcsclite,
0
8
libusb-compat-0_1,
9
-
doxygen,
10
-
libxslt,
11
}:
12
13
-
stdenv.mkDerivation rec {
14
pname = "openct";
15
version = "0.6.20";
16
17
src = fetchFromGitHub {
18
owner = "OpenSC";
19
repo = "openct";
20
-
rev = "${pname}-${version}";
21
-
sha256 = "09wxq0jxdxhci3zr7jd3zcxjkl3j0r1v00k3q8gqrg9gighh8nk2";
22
};
23
24
postPatch = ''
25
-
sed -i 's,$(DESTDIR),$(out),g' etc/Makefile.am
0
26
'';
0
0
0
0
27
28
configureFlags = [
29
"--enable-api-doc"
···
35
36
nativeBuildInputs = [
37
autoreconfHook
0
0
38
pkg-config
39
];
0
40
buildInputs = [
41
pcsclite
0
42
libusb-compat-0_1
43
-
doxygen
44
-
libxslt
45
];
46
0
0
47
preInstall = ''
48
mkdir -p $out/etc
49
'';
50
51
-
meta = with lib; {
52
-
broken = stdenv.hostPlatform.isDarwin;
53
homepage = "https://github.com/OpenSC/openct/";
54
-
license = licenses.lgpl21;
55
description = "Drivers for several smart card readers";
56
-
platforms = platforms.all;
0
0
0
57
};
58
-
}
···
3
stdenv,
4
fetchFromGitHub,
5
autoreconfHook,
6
+
doxygen,
7
+
libxslt,
8
pkg-config,
9
pcsclite,
10
+
libtool,
11
libusb-compat-0_1,
0
0
12
}:
13
14
+
stdenv.mkDerivation (finalAttrs: {
15
pname = "openct";
16
version = "0.6.20";
17
18
src = fetchFromGitHub {
19
owner = "OpenSC";
20
repo = "openct";
21
+
rev = "openct-${finalAttrs.version}";
22
+
hash = "sha256-YloE4YsvvYwfwmMCsEMGctApO/ujyZP/iAz21iXAnSc=";
23
};
24
25
postPatch = ''
26
+
substituteInPlace etc/Makefile.am \
27
+
--replace-fail "DESTDIR" "out"
28
'';
29
+
30
+
# unbreak build on GCC 14, remove when https://github.com/OpenSC/openct/pull/12
31
+
# (or equivalent) is merged and released
32
+
env.NIX_CFLAGS_COMPILE = "-Wno-error=incompatible-pointer-types";
33
34
configureFlags = [
35
"--enable-api-doc"
···
41
42
nativeBuildInputs = [
43
autoreconfHook
44
+
doxygen
45
+
libxslt # xsltproc
46
pkg-config
47
];
48
+
49
buildInputs = [
50
pcsclite
51
+
libtool # libltdl
52
libusb-compat-0_1
0
0
53
];
54
55
+
strictDeps = true;
56
+
57
preInstall = ''
58
mkdir -p $out/etc
59
'';
60
61
+
meta = {
0
62
homepage = "https://github.com/OpenSC/openct/";
0
63
description = "Drivers for several smart card readers";
64
+
license = lib.licenses.lgpl21;
65
+
maintainers = [ ];
66
+
platforms = lib.platforms.all;
67
+
broken = stdenv.hostPlatform.isDarwin;
68
};
69
+
})