tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
libvterm: fix cross compilation
Jörg Thalheim
3 years ago
ca213228
6638106e
+15
-6
1 changed file
expand all
collapse all
unified
split
pkgs
development
libraries
libvterm
default.nix
+15
-6
pkgs/development/libraries/libvterm/default.nix
···
9
9
sha256 = "10gaqygmmwp0cwk3j8qflri5caf8vl3f7pwfl2svw5whv8wkn0k2";
10
10
};
11
11
12
12
-
patchPhase = ''
13
13
-
sed -i -e s@/usr@$out@ -e /ldconfig/d Makefile
12
12
+
preInstall = ''
13
13
+
mkdir -p $out/include $out/lib
14
14
'';
15
15
16
16
-
preInstall = ''
17
17
-
mkdir -p $out/include
18
18
-
mkdir -p $out/lib
16
16
+
postPatch = ''
17
17
+
substituteInPlace Makefile \
18
18
+
--replace "gcc" "${stdenv.cc.targetPrefix}cc" \
19
19
+
--replace "ldconfig" "" \
20
20
+
--replace "/usr" "$out"
21
21
+
22
22
+
makeFlagsArray+=("PKG_CFG=`${stdenv.cc.targetPrefix}pkg-config --cflags glib-2.0`")
19
23
'';
20
24
25
25
+
# For headers
26
26
+
propagatedBuildInputs = [ glib ];
27
27
+
28
28
+
strictDeps = true;
29
29
+
21
30
nativeBuildInputs = [ pkg-config ];
22
22
-
buildInputs = [ glib ncurses ];
31
31
+
buildInputs = [ ncurses ];
23
32
24
33
meta = with lib; {
25
34
homepage = "http://libvterm.sourceforge.net/";