3
0
Fork 0
forked from mirrors/nixpkgs

gnome3.gdm: replace hardcoded paths

This commit is contained in:
Jan Tojnar 2017-11-08 10:00:11 +01:00
parent bdf1eaaf6d
commit c9fe6567ed
No known key found for this signature in database
GPG key ID: 7FAB2A15F7A607A4

View file

@ -1,7 +1,7 @@
{ stdenv, fetchurl, pkgconfig, glib, itstool, libxml2, xorg, dbus
, intltool, accountsservice, libX11, gnome3, systemd, autoreconfHook
, gtk, libcanberra_gtk3, pam, libtool, gobjectIntrospection, plymouth
, librsvg }:
, librsvg, coreutils }:
stdenv.mkDerivation rec {
inherit (import ./src.nix fetchurl) name src;
@ -11,6 +11,11 @@ stdenv.mkDerivation rec {
substituteInPlace ./configure --replace "/usr/bin/X" "${xorg.xorgserver.out}/bin/X"
'';
postPatch = ''
substituteInPlace daemon/gdm-manager.c --replace "/bin/plymouth" "${plymouth}/bin/plymouth"
substituteInPlace data/gdm.service.in --replace "/bin/kill" "${coreutils}/bin/kill"
'';
configureFlags = [ "--sysconfdir=/etc"
"--localstatedir=/var"
"--with-plymouth=yes"