pcsclite: switch to fetchFromGitlab

This commit is contained in:
Anthony Roussel 2023-12-06 18:49:26 +01:00
parent 9ac6715549
commit 4988c9de46
No known key found for this signature in database
GPG key ID: 9DC4987B1A55E75E

View file

@ -1,6 +1,6 @@
{ stdenv { stdenv
, lib , lib
, fetchurl , fetchFromGitLab
, autoreconfHook , autoreconfHook
, autoconf-archive , autoconf-archive
, flex , flex
@ -11,7 +11,7 @@
, polkit , polkit
, systemdLibs , systemdLibs
, IOKit , IOKit
, gitUpdater , nix-update-script
, pname ? "pcsclite" , pname ? "pcsclite"
, polkitSupport ? false , polkitSupport ? false
}: }:
@ -22,9 +22,12 @@ stdenv.mkDerivation rec {
outputs = [ "bin" "out" "dev" "doc" "man" ]; outputs = [ "bin" "out" "dev" "doc" "man" ];
src = fetchurl { src = fetchFromGitLab {
url = "https://pcsclite.apdu.fr/files/pcsc-lite-${version}.tar.bz2"; domain = "salsa.debian.org";
hash = "sha256-XtyvXUVEQDvatu4rXWwCxvl+pk7r8IJbjQ+mG6QX2to="; owner = "rousseau";
repo = "PCSC";
rev = "refs/tags/${version}";
hash = "sha256-7NGlU4byGxtGBticewg8K4FUiDSQZAiB7Q/y+LaqKPo=";
}; };
configureFlags = [ configureFlags = [
@ -62,9 +65,7 @@ stdenv.mkDerivation rec {
++ lib.optionals stdenv.isDarwin [ IOKit ] ++ lib.optionals stdenv.isDarwin [ IOKit ]
++ lib.optionals polkitSupport [ dbus polkit ]; ++ lib.optionals polkitSupport [ dbus polkit ];
passthru.updateScript = gitUpdater { passthru.updateScript = nix-update-script { };
url = "https://salsa.debian.org/rousseau/PCSC.git";
};
meta = with lib; { meta = with lib; {
description = "Middleware to access a smart card using SCard API (PC/SC)"; description = "Middleware to access a smart card using SCard API (PC/SC)";