Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions pkgs/by-name/op/opencbm/fix-dfu_bool.patch
Original file line number Diff line number Diff line change
@@ -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
8 changes: 6 additions & 2 deletions pkgs/by-name/op/opencbm/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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"}"
Expand Down
Loading