Skip to content

Instantly share code, notes, and snippets.

@taktoa
Created November 8, 2020 17:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save taktoa/51af642c37292e6b15d3bd30c4f9c6ff to your computer and use it in GitHub Desktop.
Save taktoa/51af642c37292e6b15d3bd30c4f9c6ff to your computer and use it in GitHub Desktop.
{ stdenv, fetchFromGitHub, cmake }:
stdenv.mkDerivation {
pname = "pigpio";
version = "78";
src = fetchFromGitHub {
owner = "joan2937";
repo = "pigpio";
rev = "cc17196c7586c3625ac8adf8f34838d320ffeda6";
sha256 = "0x628bsjb8iqnjvmz3bs0k0jc9m14yq0grfnsnwr53fs6fprh0wr";
};
buildInputs = [cmake];
patches = [ ./pigpio.nix ];
}
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