Skip to content

Commit 1b7a380

Browse files
authored
acsccid: 1.1.8 -> 1.1.12 (#436882)
2 parents 86eba14 + 60795c8 commit 1b7a380

File tree

1 file changed

+12
-19
lines changed

1 file changed

+12
-19
lines changed

pkgs/by-name/ac/acsccid/package.nix

Lines changed: 12 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
{
22
lib,
33
stdenv,
4-
fetchFromGitHub,
4+
fetchurl,
55
autoconf,
6+
autoconf-archive,
67
automake,
78
libtool,
89
gettext,
@@ -14,20 +15,19 @@
1415
libiconv,
1516
}:
1617

17-
stdenv.mkDerivation rec {
18-
version = "1.1.8";
18+
stdenv.mkDerivation (finalAttrs: {
19+
version = "1.1.12";
1920
pname = "acsccid";
2021

21-
src = fetchFromGitHub {
22-
owner = "acshk";
23-
repo = "acsccid";
24-
tag = "v${version}";
25-
sha256 = "12aahrvsk21qgpjwcrr01s742ixs44nmjkvcvqyzhqb307x1rrn3";
22+
src = fetchurl {
23+
url = "mirror://sourceforge/acsccid/acsccid-${finalAttrs.version}.tar.bz2";
24+
sha256 = "sha256-KPYHWlSUpWjOL9hmbEifb0pRWZtE+8k5Dh3bSNPMxb0=";
2625
};
2726

2827
nativeBuildInputs = [
2928
pkg-config
3029
autoconf
30+
autoconf-archive
3131
automake
3232
libtool
3333
gettext
@@ -50,19 +50,12 @@ stdenv.mkDerivation rec {
5050
doCheck = true;
5151

5252
postPatch = ''
53-
sed -e s_/bin/echo_echo_g -i src/Makefile.am
53+
substituteInPlace src/Makefile.in \
54+
--replace-fail '$(INSTALL_UDEV_RULE_FILE)' ""
5455
patchShebangs src/convert_version.pl
5556
patchShebangs src/create_Info_plist.pl
5657
'';
5758

58-
preConfigure = ''
59-
libtoolize --force
60-
aclocal
61-
autoheader
62-
automake --force-missing --add-missing
63-
autoconf
64-
'';
65-
6659
meta = {
6760
description = "PC/SC driver for Linux/Mac OS X and it supports ACS CCID smart card readers";
6861
longDescription = ''
@@ -78,9 +71,9 @@ stdenv.mkDerivation rec {
7871
services.pcscd.enable = true;
7972
services.pcscd.plugins = [ pkgs.acsccid ];
8073
'';
81-
homepage = src.meta.homepage;
74+
homepage = "http://acsccid.sourceforge.net";
8275
license = lib.licenses.lgpl2Plus;
8376
maintainers = with lib.maintainers; [ ];
8477
platforms = lib.platforms.unix;
8578
};
86-
}
79+
})

0 commit comments

Comments
 (0)