nte/nte-drv.nix

19 lines
287 B
Nix
Raw Normal View History

2024-09-12 21:45:32 +02:00
pkgs: engine: {
name,
version,
src,
extraArgs ? {},
entries ? [],
templates ? [],
}: pkgs.stdenv.mkDerivation {
inherit name version src;
buildPhase = /*sh*/''
runHook preBuild
${engine src {inherit extraArgs entries templates;}}
runHook postBuild
'';
}