Skip to content
Snippets Groups Projects
Commit c01d16f9 authored by Astro's avatar Astro :gear:
Browse files

nix fixes

parent 7ab69f31
No related branches found
No related tags found
No related merge requests found
...@@ -27,7 +27,7 @@ let ...@@ -27,7 +27,7 @@ let
version = "0.0.0"; version = "0.0.0";
src = ./.; src = ./.;
cargoSha256 = "10qv30p3kr570glnyn37b6r8pgx48zj0mr9qf84m4wk4sjp3wxsd"; cargoSha256 = "10qv30p3kr570glnyn37b6r8pgx48zj0mr9qf84m4wk4sjp3wxsd";
buildInputs = [ pkgsCross.armhf-embedded.stdenv.cc ]; buildInputs = [ pkgsCross.armhf-embedded.stdenv.cc glibc_multi ];
prePatch = '' prePatch = ''
cp ${epic-stubs}/client.c l0dable/src/ cp ${epic-stubs}/client.c l0dable/src/
''; '';
......
...@@ -44,6 +44,8 @@ pub unsafe extern "C" fn Reset_Handler() -> ! { ...@@ -44,6 +44,8 @@ pub unsafe extern "C" fn Reset_Handler() -> ! {
pub mod ctypes { pub mod ctypes {
#![allow(non_camel_case_types)] #![allow(non_camel_case_types)]
pub type c_short = i16;
pub type c_ushort = u16;
pub type c_int = i32; pub type c_int = i32;
pub type c_uint = u32; pub type c_uint = u32;
pub type c_long = i32; pub type c_long = i32;
...@@ -51,6 +53,8 @@ pub mod ctypes { ...@@ -51,6 +53,8 @@ pub mod ctypes {
pub type c_longlong = i64; pub type c_longlong = i64;
pub type c_ulonglong = u64; pub type c_ulonglong = u64;
pub type c_char = u8; pub type c_char = u8;
pub type c_schar = i8;
pub type c_uchar = u8;
pub use core::ffi::c_void; pub use core::ffi::c_void;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment