mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-10 03:23:29 +03:00
redfang: unbreak on GCC 14, modernize
This commit is contained in:
parent
1a71d99d0b
commit
e1e7c55a76
2 changed files with 20 additions and 6 deletions
12
pkgs/by-name/re/redfang/include-pthread.patch
Normal file
12
pkgs/by-name/re/redfang/include-pthread.patch
Normal file
|
@ -0,0 +1,12 @@
|
|||
diff --git a/fang.c b/fang.c
|
||||
index cda61bf..52f9659 100755
|
||||
--- a/fang.c
|
||||
+++ b/fang.c
|
||||
@@ -45,6 +45,7 @@
|
||||
#include <sys/socket.h>
|
||||
#include <asm/types.h>
|
||||
#include <netinet/in.h>
|
||||
+#include <pthread.h>
|
||||
|
||||
#include <bluetooth/bluetooth.h>
|
||||
#include <bluetooth/hci.h>
|
|
@ -6,7 +6,7 @@
|
|||
bluez,
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
stdenv.mkDerivation (finalAttrs: {
|
||||
pname = "redfang";
|
||||
version = "2.5";
|
||||
|
||||
|
@ -14,7 +14,7 @@ stdenv.mkDerivation rec {
|
|||
group = "kalilinux";
|
||||
owner = "packages";
|
||||
repo = "redfang";
|
||||
rev = "upstream/${version}";
|
||||
rev = "upstream/${finalAttrs.version}";
|
||||
hash = "sha256-dF9QmBckyHAZ+JbLr0jTmp0eMu947unJqjrTMsJAfIE=";
|
||||
};
|
||||
|
||||
|
@ -24,6 +24,8 @@ stdenv.mkDerivation rec {
|
|||
url = "https://gitlab.com/kalilinux/packages/redfang/-/merge_requests/1.diff";
|
||||
sha256 = "sha256-oxIrUAucxsBL4+u9zNNe2XXoAd088AEAHcRB/AN7B1M=";
|
||||
})
|
||||
# error: implicit declaration of function 'pthread_create' []
|
||||
./include-pthread.patch
|
||||
];
|
||||
|
||||
installFlags = [ "DESTDIR=$(out)" ];
|
||||
|
@ -32,11 +34,11 @@ stdenv.mkDerivation rec {
|
|||
|
||||
buildInputs = [ bluez ];
|
||||
|
||||
meta = with lib; {
|
||||
meta = {
|
||||
description = "Small proof-of-concept application to find non discoverable bluetooth devices";
|
||||
homepage = "https://gitlab.com/kalilinux/packages/redfang";
|
||||
license = licenses.gpl2Only;
|
||||
maintainers = with maintainers; [ moni ];
|
||||
license = lib.licenses.gpl2Only;
|
||||
maintainers = with lib.maintainers; [ moni ];
|
||||
mainProgram = "fang";
|
||||
};
|
||||
}
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue