Skip to content

Commit

Permalink
libfreefare: move to by-name
Browse files Browse the repository at this point in the history
  • Loading branch information
Bot-wxt1221 committed Jan 5, 2025
1 parent 6f4b580 commit cea2d56
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,7 @@
pkg-config,
libnfc,
openssl,
libobjc ? null,
IOKit,
Security,
darwin,
}:

stdenv.mkDerivation {
Expand All @@ -17,7 +15,7 @@ stdenv.mkDerivation {

src = fetchurl {
url = "https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/libfreefare/libfreefare-0.4.0.tar.bz2";
sha256 = "0r5wfvwgf35lb1v65wavnwz2wlfyfdims6a9xpslf4lsm4a1v8xz";
hash = "sha256-v6MdFKmaEkf17UkZXWNz3lEuPrdb8WJ2WLQM9/h2vGQ=";
};

nativeBuildInputs = [
Expand All @@ -30,16 +28,16 @@ stdenv.mkDerivation {
openssl
]
++ lib.optionals stdenv.hostPlatform.isDarwin [
libobjc
IOKit
Security
darwin.libobjc
darwin.apple_sdk.frameworks.IOKit
darwin.apple_sdk.frameworks.Security
];

meta = with lib; {
meta = {
description = "Libfreefare project aims to provide a convenient API for MIFARE card manipulations";
license = licenses.lgpl3;
license = lib.licenses.lgpl3;
homepage = "https://github.com/nfc-tools/libfreefare";
maintainers = with maintainers; [ bobvanderlinden ];
platforms = platforms.unix;
maintainers = with lib.maintainers; [ bobvanderlinden ];
platforms = lib.platforms.unix;
};
}
5 changes: 0 additions & 5 deletions pkgs/top-level/all-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -9657,11 +9657,6 @@ with pkgs;
doCheck = false;
};

libfreefare = callPackage ../development/libraries/libfreefare {
inherit (darwin.apple_sdk.frameworks) IOKit Security;
inherit (darwin) libobjc;
};

libftdi = callPackage ../development/libraries/libftdi {
inherit (darwin) libobjc;
inherit (darwin.apple_sdk.frameworks) IOKit Security;
Expand Down

0 comments on commit cea2d56

Please sign in to comment.