Created
November 8, 2020 17:01
-
-
Save taktoa/51af642c37292e6b15d3bd30c4f9c6ff to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ stdenv, fetchFromGitHub, cmake }: | |
stdenv.mkDerivation { | |
pname = "pigpio"; | |
version = "78"; | |
src = fetchFromGitHub { | |
owner = "joan2937"; | |
repo = "pigpio"; | |
rev = "cc17196c7586c3625ac8adf8f34838d320ffeda6"; | |
sha256 = "0x628bsjb8iqnjvmz3bs0k0jc9m14yq0grfnsnwr53fs6fprh0wr"; | |
}; | |
buildInputs = [cmake]; | |
patches = [ ./pigpio.nix ]; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/CMakeLists.txt b/CMakeLists.txt | |
index 383c445..1caf370 100644 | |
--- a/CMakeLists.txt | |
+++ b/CMakeLists.txt | |
@@ -9,7 +9,7 @@ find_package(RT REQUIRED) | |
option(BUILD_SHARED_LIBS "Create shared libraries" ON) | |
-add_compile_options(-Wall) | |
+add_compile_options(-Wall -g) | |
# libpigpio.(so|a) | |
add_library(pigpio pigpio.c command.c custom.cext) | |
@@ -124,4 +124,4 @@ endif() | |
# package project | |
-include (CPack) | |
\ No newline at end of file | |
+include (CPack) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment