about summary refs log tree commit diff
path: root/pkgs/by-name
diff options
context:
space:
mode:
authorZhong Jianxin <azuwis@gmail.com>2023-09-13 23:22:07 +0800
committerZhong Jianxin <azuwis@gmail.com>2023-09-13 23:24:14 +0800
commit43555b34363a372a0ac2051808d7c70f0599bf99 (patch)
tree302f29af4028c218761cb6ab64423d68680dc2c0 /pkgs/by-name
parente4c9667019bc1e39a5fb819a5b2192af08695954 (diff)
mfoc-hardnested: unstable-2021-08-14 -> unstable-2023-03-27
- Migrate to by-name hierarchy
- Use the finalAttrs pattern for easier overrides
- Fix build on aarch64-darwin
Diffstat (limited to 'pkgs/by-name')
-rw-r--r--pkgs/by-name/mf/mfoc-hardnested/package.nix38
1 files changed, 38 insertions, 0 deletions
diff --git a/pkgs/by-name/mf/mfoc-hardnested/package.nix b/pkgs/by-name/mf/mfoc-hardnested/package.nix
new file mode 100644
index 0000000000000..550d3a5c46677
--- /dev/null
+++ b/pkgs/by-name/mf/mfoc-hardnested/package.nix
@@ -0,0 +1,38 @@
+{ lib
+, stdenv
+, fetchFromGitHub
+, autoreconfHook
+, pkg-config
+, libnfc
+, xz
+}:
+
+stdenv.mkDerivation (finalAttrs: {
+  pname = "mfoc-hardnested";
+  version = "unstable-2023-03-27";
+
+  src = fetchFromGitHub {
+    owner = "nfc-tools";
+    repo = finalAttrs.pname;
+    rev = "a6007437405a0f18642a4bbca2eeba67c623d736";
+    hash = "sha256-YcUMS4wx5ML4yYiARyfm7T7nLomgG9YCSFj+ZUg5XZk=";
+  };
+
+  nativeBuildInputs = [
+    autoreconfHook
+    pkg-config
+  ];
+
+  buildInputs = [
+    libnfc
+    xz
+  ];
+
+  meta = with lib; {
+    description = "A fork of mfoc integrating hardnested code from the proxmark";
+    license = licenses.gpl2;
+    homepage = "https://github.com/nfc-tools/mfoc-hardnested";
+    maintainers = with maintainers; [ azuwis ];
+    platforms = platforms.unix;
+  };
+})