Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| fe4f8df0ab |
@@ -2,7 +2,7 @@ cmake_minimum_required(VERSION 3.15)
|
|||||||
project(ke C) # Specify C language explicitly
|
project(ke C) # Specify C language explicitly
|
||||||
|
|
||||||
set(CMAKE_C_STANDARD 99)
|
set(CMAKE_C_STANDARD 99)
|
||||||
set(KE_VERSION "1.5.2")
|
set(KE_VERSION "1.5.0")
|
||||||
|
|
||||||
set(CMAKE_C_FLAGS "-Wall -Wextra -pedantic -Wshadow -Werror -std=c99 -g")
|
set(CMAKE_C_FLAGS "-Wall -Wextra -pedantic -Wshadow -Werror -std=c99 -g")
|
||||||
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -D_DEFAULT_SOURCE -D_XOPEN_SOURCE")
|
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -D_DEFAULT_SOURCE -D_XOPEN_SOURCE")
|
||||||
|
|||||||
1
Makefile
1
Makefile
@@ -6,6 +6,7 @@ CFLAGS := -Wall -Wextra -pedantic -Wshadow -Werror -std=c99 -g
|
|||||||
CFLAGS += -Wno-unused-result
|
CFLAGS += -Wno-unused-result
|
||||||
CFLAGS += -D_DEFAULT_SOURCE -D_XOPEN_SOURCE
|
CFLAGS += -D_DEFAULT_SOURCE -D_XOPEN_SOURCE
|
||||||
CFLAGS += -fsanitize=address -fno-omit-frame-pointer
|
CFLAGS += -fsanitize=address -fno-omit-frame-pointer
|
||||||
|
CFLAGS += -fprofile-instr-generate -fcoverage-mapping
|
||||||
|
|
||||||
LDFLAGS := -fsanitize=address
|
LDFLAGS := -fsanitize=address
|
||||||
|
|
||||||
|
|||||||
@@ -19,6 +19,3 @@ Released under an ISC license.
|
|||||||
|
|
||||||
Started by following along with kilo:
|
Started by following along with kilo:
|
||||||
https://viewsourcecode.org/snaptoken/kilo/
|
https://viewsourcecode.org/snaptoken/kilo/
|
||||||
|
|
||||||
E.g., in the devlogs
|
|
||||||
https://log.wntrmute.dev/2020/02/20200207
|
|
||||||
|
|||||||
@@ -5,15 +5,9 @@
|
|||||||
installShellFiles,
|
installShellFiles,
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
let
|
|
||||||
cmakeContent = builtins.readFile ./CMakeLists.txt;
|
|
||||||
cmakeLines = lib.splitString "\n" cmakeContent;
|
|
||||||
versionLine = lib.findFirst (l: builtins.match ".*set\\(KE_VERSION \".+\"\\).*" l != null) (throw "KE_VERSION not found in CMakeLists.txt") cmakeLines;
|
|
||||||
version = builtins.head (builtins.match ".*set\\(KE_VERSION \"(.+)\"\\).*" versionLine);
|
|
||||||
in
|
|
||||||
stdenv.mkDerivation {
|
stdenv.mkDerivation {
|
||||||
pname = "ke";
|
pname = "ke";
|
||||||
inherit version;
|
version = "1.5.0";
|
||||||
|
|
||||||
src = lib.cleanSource ./.;
|
src = lib.cleanSource ./.;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user