diff options
author | Will Dietz <w@wdtz.org> | 2019-03-12 23:14:24 -0500 |
---|---|---|
committer | Will Dietz <w@wdtz.org> | 2019-03-12 23:14:24 -0500 |
commit | 7971975f29dc7a056bee2e0f1da1d47b16939ad8 (patch) | |
tree | 8813156adc1511ec4eb7f35a6085f84a620b0805 /pkgs/applications/display-managers/lightdm/gtk-greeter.nix | |
parent | 402e7f9d0a07968d83f68779ff8f2ffc84f6c745 (diff) | |
download | nixpkgs-7971975f29dc7a056bee2e0f1da1d47b16939ad8.tar nixpkgs-7971975f29dc7a056bee2e0f1da1d47b16939ad8.tar.gz nixpkgs-7971975f29dc7a056bee2e0f1da1d47b16939ad8.tar.bz2 nixpkgs-7971975f29dc7a056bee2e0f1da1d47b16939ad8.tar.lz nixpkgs-7971975f29dc7a056bee2e0f1da1d47b16939ad8.tar.xz nixpkgs-7971975f29dc7a056bee2e0f1da1d47b16939ad8.tar.zst nixpkgs-7971975f29dc7a056bee2e0f1da1d47b16939ad8.zip |
lightdm_gtk_greeter: fix configureFlags to not be one long string
For whatever reason, setting `configureFlagsArray` causes the configure invocation to escape spaces between parameters: configure flags: --disable-static --disable-dependency-tracking --prefix=/nix/store/4bn8dsr743dp0g5j020jf8why5hkld3p-lightdm-gtk-greeter-2.0.6 --localstatedir=/var\ --sysconfdir=/etc\ --disable-indicator-services-command\ --enable-at-spi-command=/nix/store/li9bsxl8qja8qw0pa70xd572gw5hqsdm-at-spi2-core-2.30.1/libexec/at-spi-bus-launcher\ \ --launch-immediately This actually doesn't break the build (!) but it does break lightdm pretty badly for me and it's not hard to imagine why :). Instead, use configureFlags as normal but just append the command in `preConfigure` directly, so we can preserve the space.
Diffstat (limited to 'pkgs/applications/display-managers/lightdm/gtk-greeter.nix')
-rw-r--r-- | pkgs/applications/display-managers/lightdm/gtk-greeter.nix | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/pkgs/applications/display-managers/lightdm/gtk-greeter.nix b/pkgs/applications/display-managers/lightdm/gtk-greeter.nix index 094a92ab014..61db182f744 100644 --- a/pkgs/applications/display-managers/lightdm/gtk-greeter.nix +++ b/pkgs/applications/display-managers/lightdm/gtk-greeter.nix @@ -23,18 +23,21 @@ stdenv.mkDerivation rec { buildInputs = [ lightdm exo intltool makeWrapper hicolor-icon-theme ] ++ (if useGTK2 then [ gtk2 ] else [ gtk3 ]); - configureFlagsArray = [ + configureFlags = [ "--localstatedir=/var" "--sysconfdir=/etc" "--disable-indicator-services-command" - "--enable-at-spi-command=${at-spi2-core}/libexec/at-spi-bus-launcher --launch-immediately" ] ++ stdenv.lib.optional useGTK2 "--with-gtk2"; + preConfigure = '' + configureFlagsArray+=( --enable-at-spi-command="${at-spi2-core}/libexec/at-spi-bus-launcher --launch-immediately" ) + ''; + NIX_CFLAGS_COMPILE = [ "-Wno-error=deprecated-declarations" ]; installFlags = [ "localstatedir=\${TMPDIR}" - "sysconfdir=\${out}/etc" + "sysconfdir=${placeholder "out"}/etc" ]; postInstall = '' |