hikari: use bmake setupHook for build+install phase
This commit is contained in:
parent
53b88f966e
commit
952842352e
|
@ -42,14 +42,11 @@ stdenv.mkDerivation {
|
||||||
|
|
||||||
enableParallelBuilding = true;
|
enableParallelBuilding = true;
|
||||||
|
|
||||||
# Must replace GNU Make by bmake
|
makeFlags = with lib; [ "PREFIX=$(out)" ]
|
||||||
buildPhase = with lib; concatStringsSep " " (
|
|
||||||
[ "bmake" "-j$NIX_BUILD_CORES" "PREFIX=$out" ]
|
|
||||||
++ optional stdenv.isLinux "WITH_POSIX_C_SOURCE=YES"
|
++ optional stdenv.isLinux "WITH_POSIX_C_SOURCE=YES"
|
||||||
++ mapAttrsToList (feat: enabled:
|
++ mapAttrsToList (feat: enabled:
|
||||||
optionalString enabled "WITH_${toUpper feat}=YES"
|
optionalString enabled "WITH_${toUpper feat}=YES"
|
||||||
) features
|
) features;
|
||||||
);
|
|
||||||
|
|
||||||
# Can't suid in nix store
|
# Can't suid in nix store
|
||||||
# Run hikari as root (it will drop privileges as early as possible), or create
|
# Run hikari as root (it will drop privileges as early as possible), or create
|
||||||
|
@ -58,13 +55,6 @@ stdenv.mkDerivation {
|
||||||
substituteInPlace Makefile --replace '4555' '555'
|
substituteInPlace Makefile --replace '4555' '555'
|
||||||
'';
|
'';
|
||||||
|
|
||||||
installPhase = ''
|
|
||||||
bmake \
|
|
||||||
PREFIX=$out \
|
|
||||||
install
|
|
||||||
runHook postInstall
|
|
||||||
'';
|
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "Stacking Wayland compositor which is actively developed on FreeBSD but also supports Linux";
|
description = "Stacking Wayland compositor which is actively developed on FreeBSD but also supports Linux";
|
||||||
homepage = "https://hikari.acmelabs.space";
|
homepage = "https://hikari.acmelabs.space";
|
||||||
|
|
Loading…
Reference in New Issue