mirror of
https://github.com/CHN-beta/nixos.git
synced 2026-01-12 01:55:22 +08:00
23 lines
486 B
Nix
23 lines
486 B
Nix
{
|
|
lib, stdenv, requireFile, src,
|
|
boost, nghttp2, brotli, nameof, cppcoro, tgbot-cpp, libbacktrace, fmt, date
|
|
}: stdenv.mkDerivation
|
|
{
|
|
name = "mirism";
|
|
inherit src;
|
|
buildInputs = [ boost nghttp2.dev brotli nameof cppcoro tgbot-cpp libbacktrace fmt date ];
|
|
buildPhase =
|
|
''
|
|
runHook preBuild
|
|
make ng01 beta
|
|
runHook postBuild
|
|
'';
|
|
installPhase =
|
|
''
|
|
runHook preInstall
|
|
mkdir -p $out/bin
|
|
cp build/{ng01,beta} $out/bin
|
|
runHook postInstall
|
|
'';
|
|
}
|