chromium,chromedriver: 129.0.6668.91 -> 129.0.6668.100
[NixPkgs.git] / pkgs / by-name / rf / rfdump / package.nix
blobde56661d8e0ffc548d805147d4e89b55ac4f6e91
2   autoreconfHook,
3   expat,
4   fetchpatch,
5   fetchurl,
6   glib,
7   gtk3-x11,
8   lib,
9   pkg-config,
10   stdenv,
11   zlib,
14 stdenv.mkDerivation rec {
15   pname = "rfdump";
16   version = "1.6";
18   src = fetchurl {
19     url = "https://www.rfdump.org/dl/rfdump-${version}.tar.bz2";
20     hash = "sha256-fbEmh7i3ug5GCeyJ2wT45bbDq0ZEOv8yH+MOJwzER4U=";
21   };
23   patches = [
24     (fetchpatch {
25       url = "https://salsa.debian.org/pkg-security-team/rfdump/-/raw/debian/master/debian/patches/01_fix_desktop_file.patch";
26       hash = "sha256-r6BR+eAg963GjcFvV6/1heW7uKi8tmi7j8LyxtpcgYk=";
27     })
28     (fetchpatch {
29       url = "https://salsa.debian.org/pkg-security-team/rfdump/-/raw/debian/master/debian/patches/03_fix-format-security-errors.patch";
30       hash = "sha256-rQKvFeSQ09P46lhvlov51Oej0HurlR++5Yv4kCLn9J8=";
31     })
32     (fetchpatch {
33       url = "https://salsa.debian.org/pkg-security-team/rfdump/-/raw/debian/master/debian/patches/02_configure.in-preserve-CFLAGS.patch";
34       hash = "sha256-4+Yj5I019ZkHbtE3s67miAlMeuV8aZdc9RzJrySLmgM=";
35     })
36     (fetchpatch {
37       url = "https://salsa.debian.org/pkg-security-team/rfdump/-/raw/debian/master/debian/patches/04_gcc10.patch";
38       hash = "sha256-LTsBkdwvmZ11+gwfe/XaapxzLaEVu7CdtCw8mqJcXr4=";
39     })
40     (fetchpatch {
41       url = "https://salsa.debian.org/pkg-security-team/rfdump/-/raw/debian/master/debian/patches/05_gtk3.patch";
42       hash = "sha256-1y/JFePfnQMMVwqLYgUQyP/SNZRMHgV+cHjbHP6szQs=";
43     })
44   ];
46   postPatch = ''
47     substituteInPlace src/main.c --replace-fail "/usr/share/rfdump/rfdump.ui" "$out/share/rfdump/rfdump.ui"
48     substituteInPlace src/Makefile.am --replace-fail "/usr/share/pixmaps" "$out/share/pixmaps"
49     substituteInPlace src/tagtypes.c --replace-fail "/usr/share/rfdump/rfd_types.xml" "$out/share/rfdump/rfd_types.xml"
50   '';
52   configureFlags = [ "PREFIX=$out" ];
54   nativeBuildInputs = [
55     autoreconfHook
56     pkg-config
57   ];
59   buildInputs = [
60     expat
61     glib
62     gtk3-x11
63     zlib
64   ];
66   makeFlags = [ "LIBS=-lexpat" ];
68   meta = {
69     description = "Tool to detect RFID-Tags and show their meta information";
70     homepage = "https://www.rfdump.org/";
71     changelog = "https://salsa.debian.org/pkg-security-team/rfdump/-/blob/debian/master/ChangeLog";
72     license = lib.licenses.gpl2Only;
73     maintainers = with lib.maintainers; [ tochiaha ];
74     mainProgram = "rfdump";
75     platforms = lib.platforms.all;
76   };