depot/third_party/nixpkgs/pkgs/by-name/ej/ejs/package.nix
Default email 7e47f3658e Project import generated by Copybara.
GitOrigin-RevId: 1925c603f17fc89f4c8f6bf6f631a802ad85d784
2024-09-26 11:04:55 +00:00

37 lines
684 B
Nix

{
lib,
buildNpmPackage,
fetchFromGitHub,
}:
let
version = "3.1.10";
in
buildNpmPackage {
pname = "ejs";
inherit version;
src = fetchFromGitHub {
owner = "mde";
repo = "ejs";
rev = "v${version}";
hash = "sha256-3Rq+7oiYJlIY7sGPasx728sz2zj0ndAvKpHGsQX4tlc=";
};
npmDepsHash = "sha256-829eWfJiMw9KRlhdmzD0ha//bgUQ5nPEzO+ayUPLxXY=";
buildPhase = ''
runHook preBuild
./node_modules/.bin/jake build
runHook postBuild
'';
meta = {
description = "Embedded JavaScript templates";
homepage = "http://ejs.co";
license = lib.licenses.asl20;
mainProgram = "ejs";
maintainers = with lib.maintainers; [ momeemt ];
};
}