From 824b30a7158e7ada6b3018859c1d9ed17e2bc8e8 Mon Sep 17 00:00:00 2001 From: Yurii Rashkovskii Date: Sun, 17 Sep 2017 16:02:17 -0700 Subject: [PATCH] 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. --- pkgs/applications/window-managers/awesome/default.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/pkgs/applications/window-managers/awesome/default.nix b/pkgs/applications/window-managers/awesome/default.nix index a441de5ed19..ec73150a506 100644 --- a/pkgs/applications/window-managers/awesome/default.nix +++ b/pkgs/applications/window-managers/awesome/default.nix @@ -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";