opencbm: fix build (#489055)
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
diff --git a/xum1541cfg/dfu-programmer-0.5.4/src/dfu-bool.h b/xum1541cfg/dfu-programmer-0.5.4/src/dfu-bool.h
|
||||
index 3dbe5a53..c77bc686 100644
|
||||
--- a/xum1541cfg/dfu-programmer-0.5.4/src/dfu-bool.h
|
||||
+++ b/xum1541cfg/dfu-programmer-0.5.4/src/dfu-bool.h
|
||||
@@ -1,9 +1,6 @@
|
||||
#ifndef __DFU_BOOL_H__
|
||||
#define __DFU_BOOL_H__
|
||||
|
||||
-typedef enum {
|
||||
- false = 0,
|
||||
- true = 1
|
||||
-} dfu_bool;
|
||||
-
|
||||
+#include <stdbool.h>
|
||||
+#define dfu_bool bool
|
||||
#endif
|
||||
@@ -15,10 +15,14 @@ stdenv.mkDerivation (finalAttrs: {
|
||||
src = fetchFromGitHub {
|
||||
owner = "OpenCBM";
|
||||
repo = "OpenCBM";
|
||||
rev = "v${finalAttrs.version}";
|
||||
sha256 = "sha256-5lj5F79Gbhrvi9dxKGobdyDyBLGcptAtxx9SANhLrKw=";
|
||||
tag = "v${finalAttrs.version}";
|
||||
hash = "sha256-5lj5F79Gbhrvi9dxKGobdyDyBLGcptAtxx9SANhLrKw=";
|
||||
};
|
||||
|
||||
patches = [
|
||||
./fix-dfu_bool.patch
|
||||
];
|
||||
|
||||
makefile = "LINUX/Makefile";
|
||||
makeFlags = [
|
||||
"PREFIX=${placeholder "out"}"
|
||||
|
||||
Reference in New Issue
Block a user