mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-15 13:37:21 +03:00
gobject-introspection: Don't hardcode /nix/store
If no config.nix.storeDir has been set, don't fall back to "/nix/store" but use builtins.storeDir instead so we always should end up with the correct store path no matter whether config.nix.storeDir has been set. Thanks to @lethalman for pointing this out. Signed-off-by: aszlig <aszlig@redmoonstudios.org>
This commit is contained in:
parent
c83e697aa0
commit
723f7f8f4f
@ -1,6 +1,6 @@
|
|||||||
{ stdenv, fetchurl, glib, flex, bison, pkgconfig, libffi, python
|
{ stdenv, fetchurl, glib, flex, bison, pkgconfig, libffi, python
|
||||||
, libintlOrEmpty, autoconf, automake, otool
|
, libintlOrEmpty, autoconf, automake, otool
|
||||||
, substituteAll, nixStoreDir ? "/nix/store"
|
, substituteAll, nixStoreDir ? builtins.storeDir
|
||||||
}:
|
}:
|
||||||
# now that gobjectIntrospection creates large .gir files (eg gtk3 case)
|
# now that gobjectIntrospection creates large .gir files (eg gtk3 case)
|
||||||
# it may be worth thinking about using multiple derivation outputs
|
# it may be worth thinking about using multiple derivation outputs
|
||||||
|
@ -6640,7 +6640,7 @@ let
|
|||||||
mpfr = callPackage ../development/libraries/mpfr/default.nix { };
|
mpfr = callPackage ../development/libraries/mpfr/default.nix { };
|
||||||
|
|
||||||
gobjectIntrospection = callPackage ../development/libraries/gobject-introspection {
|
gobjectIntrospection = callPackage ../development/libraries/gobject-introspection {
|
||||||
nixStoreDir = config.nix.storeDir or "/nix/store";
|
nixStoreDir = config.nix.storeDir or builtins.storeDir;
|
||||||
};
|
};
|
||||||
|
|
||||||
goocanvas = callPackage ../development/libraries/goocanvas { };
|
goocanvas = callPackage ../development/libraries/goocanvas { };
|
||||||
|
Loading…
Reference in New Issue
Block a user