Skip to content

Commit 9a00a65

Browse files
authored
mdk3-master: unbreak on GCC 14, modernize (#388527)
2 parents 1aa60a1 + 59db8b8 commit 9a00a65

File tree

1 file changed

+10
-7
lines changed

1 file changed

+10
-7
lines changed

pkgs/by-name/md/mdk3-master/package.nix

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
wirelesstools,
66
}:
77

8-
stdenv.mkDerivation rec {
8+
stdenv.mkDerivation (finalAttrs: {
99
pname = "mdk3-master";
1010
version = "6-unstable-2015-05-24";
1111

@@ -18,6 +18,9 @@ stdenv.mkDerivation rec {
1818

1919
runtimeDependencies = [ wirelesstools ];
2020

21+
# fix
22+
env.NIX_CFLAGS_COMPILE = "-Wno-error=incompatible-pointer-types";
23+
2124
installPhase = ''
2225
runHook preInstall
2326
make -C osdep install
@@ -26,13 +29,13 @@ stdenv.mkDerivation rec {
2629
runHook postInstall
2730
'';
2831

29-
meta = with lib; {
32+
meta = {
3033
description = "MDK3 fork able to force reboot Access Points";
3134
homepage = "https://github.com/charlesxsh/mdk3-master";
32-
changelog = "https://github.com/charlesxsh/mdk3-master/blob/${src.rev}/CHANGELOG";
33-
license = licenses.gpl2Only;
34-
maintainers = with maintainers; [ pinpox ];
35+
changelog = "https://github.com/charlesxsh/mdk3-master/blob/${finalAttrs.src.rev}/CHANGELOG";
36+
license = lib.licenses.gpl2Only;
37+
maintainers = with lib.maintainers; [ pinpox ];
3538
mainProgram = "mdk3";
36-
platforms = platforms.all;
39+
platforms = lib.platforms.all;
3740
};
38-
}
41+
})

0 commit comments

Comments
 (0)