blob: a571cdac2624b4656245f3bd07aa8c991878468e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
|
{ inputs }:
self: super: {
codelite =
with super;
with gnome;
with gsettings-desktop-schemas;
(llvmPackages_16.stdenv.mkDerivation {
name = "codelite";
# version = "2022-02-22";
version = "git";
src = fetchGit {
url = "https://github.com/eranif/codelite";
ref = "master";
rev = "ad88f618a0276cfe2f5a189ba3408ac4c08b908f";
# rev = "1393fdee2cc0a5d97b35a4f7db44f6e344a67b6d";
submodules = true;
};
nativeBuildInputs = [
cmake
pkg-config
wrapGAppsHook
which # required for cmake script
];
buildInputs = [
clang_16
sqlite
gsettings-desktop-schemas
(wxGTK32.overrideAttrs (old: rec {
# version = "3.1.6";
version = "git";
src = fetchGit {
url = "https://github.com/wxWidgets/wxWidgets";
ref = "master";
rev = "9bae94022c6aa8bb2b1b207f0f64bc362e5cd6af";
submodules = true;
};
configureFlags = [
"--disable-precomp-headers"
# This is the default option, but be explicit
"--disable-monolithic"
"--enable-mediactrl"
"--with-nanosvg"
"--with-opengl"
];
}))
pcre
gtk3
lldb
hunspell
libssh
bison
flex
];
# Make '#include <hb.h>' Just Work.
# Do clients expect to use '#include <harfbuzz/hb.h>'?
NIX_CFLAGS_COMPILE = "-I${harfbuzz.dev}/include/harfbuzz";
cmakeFlags = [
"-DWITH_SFTP=1"
"-DENABLE_SFTP=1"
"-DUSE_CLANG=1"
"-DCL_PREFIX=${placeholder "out"}"
];
postPatch = ''
sed 's/option(ENABLE_STATIC "Enable static build" ON)/option(ENABLE_STATIC "Enable static build" OFF)/g' -i ctags/CMakeLists.txt
sed 's/set(LIBS -static)//g' -i ctags/CMakeLists.txt
'';
});
}
|