awesome: specify version

By default, awesome will use "devel" as a version name
(or `git describe`). This has led to awesome always
showing "devel" for its version.

Some extensions depend on version information to figure
out what features they can use.

This change overrides the version for the build from the
derivations' `version` attribute.
This commit is contained in:
Yurii Rashkovskii 2017-09-17 16:02:17 -07:00
parent 018a5ae2f4
commit 824b30a715

View file

@ -39,6 +39,7 @@ with luaPackages; stdenv.mkDerivation rec {
xcbutilxrm ];
#cmakeFlags = "-DGENERATE_MANPAGES=ON";
cmakeFlags = "-DOVERRIDE_VERSION=${version}";
LD_LIBRARY_PATH = "${stdenv.lib.makeLibraryPath [ cairo pango gobjectIntrospection ]}";
GI_TYPELIB_PATH = "${pango.out}/lib/girepository-1.0";