yabar: support cross-compilation, format
This commit is contained in:
parent
93d9e50336
commit
8deddc2133
|
@ -19,16 +19,33 @@ stdenv.mkDerivation {
|
||||||
|
|
||||||
hardeningDisable = [ "format" ];
|
hardeningDisable = [ "format" ];
|
||||||
|
|
||||||
nativeBuildInputs = [ pkg-config ];
|
strictDeps = true;
|
||||||
|
depsBuildBuild = [
|
||||||
|
pkg-config
|
||||||
|
];
|
||||||
|
nativeBuildInputs = [
|
||||||
|
pkg-config
|
||||||
|
asciidoc
|
||||||
|
docbook_xsl
|
||||||
|
libxslt
|
||||||
|
makeWrapper
|
||||||
|
libconfig
|
||||||
|
pango
|
||||||
|
];
|
||||||
buildInputs = [
|
buildInputs = [
|
||||||
cairo gdk-pixbuf libconfig pango xcbutilwm docbook_xsl
|
cairo
|
||||||
alsa-lib wirelesstools asciidoc libxslt makeWrapper
|
gdk-pixbuf
|
||||||
|
libconfig
|
||||||
|
pango
|
||||||
|
xcbutilwm
|
||||||
|
alsa-lib
|
||||||
|
wirelesstools
|
||||||
];
|
];
|
||||||
|
|
||||||
postPatch = ''
|
postPatch = ''
|
||||||
substituteInPlace ./Makefile \
|
substituteInPlace ./Makefile \
|
||||||
--replace "\$(shell git describe)" "${version}" \
|
--replace "\$(shell git describe)" "${version}" \
|
||||||
--replace "a2x" "${asciidoc}/bin/a2x --no-xmllint"
|
--replace "a2x" "a2x --no-xmllint"
|
||||||
'';
|
'';
|
||||||
|
|
||||||
makeFlags = [ "DESTDIR=$(out)" "PREFIX=/" ];
|
makeFlags = [ "DESTDIR=$(out)" "PREFIX=/" ];
|
||||||
|
|
Loading…
Reference in a new issue