switch to new window_manager from main
This commit is contained in:
parent
479279b68e
commit
44a1ec667e
1 changed files with 102 additions and 97 deletions
32
linux/nix/pkg/hook_pkg_config.nix
Normal file
32
linux/nix/pkg/hook_pkg_config.nix
Normal file
|
|
@ -0,0 +1,32 @@
|
|||
{
|
||||
stdenvNoCC,
|
||||
pkg-config,
|
||||
pkg-config-unwrapped,
|
||||
makeWrapper,
|
||||
gtk3,
|
||||
libx11,
|
||||
libxi,
|
||||
}:
|
||||
|
||||
# Build hooks run with a filtered environment that drops PKG_CONFIG_PATH, so
|
||||
# nativeapi's hook can only find its libraries through a pkg-config on PATH.
|
||||
stdenvNoCC.mkDerivation {
|
||||
name = "hook-pkg-config";
|
||||
dontUnpack = true;
|
||||
|
||||
nativeBuildInputs = [
|
||||
pkg-config
|
||||
makeWrapper
|
||||
];
|
||||
|
||||
buildInputs = [
|
||||
gtk3
|
||||
libx11
|
||||
libxi
|
||||
];
|
||||
|
||||
installPhase = ''
|
||||
makeWrapper ${pkg-config-unwrapped}/bin/pkg-config $out/bin/pkg-config \
|
||||
--prefix PKG_CONFIG_PATH : "$PKG_CONFIG_PATH"
|
||||
'';
|
||||
}
|
||||
Loading…
Reference in a new issue