-
-
Notifications
You must be signed in to change notification settings - Fork 14.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #272745 from anthonyroussel/updates/pcsctools
pcsc-tools: 1.6.2 -> 1.7.0
- Loading branch information
Showing
4 changed files
with
102 additions
and
59 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,96 @@ | ||
{ stdenv | ||
, lib | ||
, fetchFromGitHub | ||
, autoconf-archive | ||
, autoreconfHook | ||
, gobject-introspection | ||
, makeWrapper | ||
, pkg-config | ||
, wrapGAppsHook | ||
, systemd | ||
, dbus | ||
, pcsclite | ||
, PCSC | ||
, wget | ||
, coreutils | ||
, perlPackages | ||
, testers | ||
, nix-update-script | ||
}: | ||
|
||
stdenv.mkDerivation (finalAttrs: { | ||
pname = "pcsc-tools"; | ||
version = "1.7.0"; | ||
|
||
src = fetchFromGitHub { | ||
owner = "LudovicRousseau"; | ||
repo = "pcsc-tools"; | ||
rev = "refs/tags/${finalAttrs.version}"; | ||
hash = "sha256-tTeSlS1ncpdIaoJsSVgm3zSCogP6S8zlA9hRFocZ/R4="; | ||
}; | ||
|
||
configureFlags = [ | ||
"--datarootdir=${placeholder "out"}/share" | ||
]; | ||
|
||
buildInputs = [ dbus perlPackages.perl pcsclite ] | ||
++ lib.optional stdenv.isDarwin PCSC | ||
++ lib.optional stdenv.isLinux systemd; | ||
|
||
nativeBuildInputs = [ | ||
autoconf-archive | ||
autoreconfHook | ||
gobject-introspection | ||
makeWrapper | ||
pkg-config | ||
wrapGAppsHook | ||
]; | ||
|
||
preFixup = '' | ||
makeWrapperArgs+=("''${gappsWrapperArgs[@]}") | ||
''; | ||
|
||
postInstall = '' | ||
wrapProgram $out/bin/scriptor \ | ||
--set PERL5LIB "${with perlPackages; makePerlPath [ ChipcardPCSC libintl-perl ]}" | ||
wrapProgram $out/bin/gscriptor \ | ||
''${makeWrapperArgs[@]} \ | ||
--set PERL5LIB "${with perlPackages; makePerlPath [ | ||
ChipcardPCSC | ||
libintl-perl | ||
GlibObjectIntrospection | ||
Glib | ||
Gtk3 | ||
Pango | ||
Cairo | ||
CairoGObject | ||
]}" | ||
wrapProgram $out/bin/ATR_analysis \ | ||
--set PERL5LIB "${with perlPackages; makePerlPath [ ChipcardPCSC libintl-perl ]}" | ||
wrapProgram $out/bin/pcsc_scan \ | ||
--prefix PATH : "$out/bin:${lib.makeBinPath [ coreutils wget ]}" | ||
install -Dm444 -t $out/share/pcsc smartcard_list.txt | ||
''; | ||
|
||
passthru = { | ||
tests.version = testers.testVersion { | ||
package = finalAttrs.finalPackage; | ||
command = "pcsc_scan -V"; | ||
}; | ||
updateScript = nix-update-script { }; | ||
}; | ||
|
||
meta = with lib; { | ||
description = "Tools used to test a PC/SC driver, card or reader"; | ||
homepage = "https://pcsc-tools.apdu.fr/"; | ||
changelog = "https://github.com/LudovicRousseau/pcsc-tools/releases/tag/${finalAttrs.version}"; | ||
license = licenses.gpl2Plus; | ||
mainProgram = "pcsc_scan"; | ||
maintainers = with maintainers; [ peterhoeg anthonyroussel ]; | ||
platforms = platforms.unix; | ||
}; | ||
}) |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters