mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-17 07:13:23 +01:00
Make polkit compile
svn path=/nixpkgs/trunk/; revision=21788
This commit is contained in:
parent
3fbd71aa88
commit
07c11bbec2
1 changed files with 18 additions and 6 deletions
|
@ -1,6 +1,17 @@
|
||||||
{ stdenv, fetchurl, pkgconfig, glib, eggdbus, expat, pam, intltool, gettext,
|
{ stdenv, fetchurl, pkgconfig, glib, eggdbus, expat, pam, intltool, gettext,
|
||||||
gobjectIntrospection }:
|
gobjectIntrospection }:
|
||||||
|
|
||||||
|
let
|
||||||
|
system="/var/run/current-system/sw";
|
||||||
|
foolVars = {
|
||||||
|
LOCALSTATE = "/var";
|
||||||
|
SYSCONF = "/etc";
|
||||||
|
LIBEXEC = "${system}/libexec";
|
||||||
|
LIB = "${system}/lib";
|
||||||
|
DATA = "${system}/share";
|
||||||
|
};
|
||||||
|
in
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
name = "polkit-0.96";
|
name = "polkit-0.96";
|
||||||
|
|
||||||
|
@ -12,10 +23,11 @@ stdenv.mkDerivation rec {
|
||||||
buildInputs = [ pkgconfig glib eggdbus expat pam intltool gettext
|
buildInputs = [ pkgconfig glib eggdbus expat pam intltool gettext
|
||||||
gobjectIntrospection ];
|
gobjectIntrospection ];
|
||||||
|
|
||||||
configureFlags = "--localstatedir=/var --sysconfdir=/etc";
|
# Ugly hack to overwrite hardcoded directories
|
||||||
# TODO: PACKAGE_DATA_DIR, PACKAGE_LIBEXEC_DIR, PACKAGE_LIB_DIR
|
# TODO: investigate a proper patch which will be accepted upstream
|
||||||
|
CFLAGS = stdenv.lib.concatStringsSep " "
|
||||||
installFlags = "localstatedir=$(TMPDIR)/var"; # keep `make install' happy
|
( map (var: ''-DPACKAGE_${var}_DIR=\""${builtins.getAttr var foolVars}"\"'')
|
||||||
|
(builtins.attrNames foolVars) );
|
||||||
|
|
||||||
postInstall =
|
postInstall =
|
||||||
''
|
''
|
||||||
|
|
Loading…
Reference in a new issue