Loading pkgs/by-name/op/opencbm/fix-dfu_bool.patch 0 → 100644 +16 −0 Original line number Diff line number Diff line 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 pkgs/by-name/op/opencbm/package.nix +6 −2 Original line number Diff line number Diff line Loading @@ -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"}" Loading Loading
pkgs/by-name/op/opencbm/fix-dfu_bool.patch 0 → 100644 +16 −0 Original line number Diff line number Diff line 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
pkgs/by-name/op/opencbm/package.nix +6 −2 Original line number Diff line number Diff line Loading @@ -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"}" Loading