2020-04-24 23:36:52 +00:00
|
|
|
{ stdenv, lib, bundlerEnv, makeWrapper, bundlerUpdateScript }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "jsduck";
|
|
|
|
version = (import ./gemset.nix).jsduck.version;
|
|
|
|
|
|
|
|
env = bundlerEnv {
|
|
|
|
name = pname;
|
|
|
|
gemfile = ./Gemfile;
|
|
|
|
lockfile = ./Gemfile.lock;
|
|
|
|
gemset = ./gemset.nix;
|
|
|
|
};
|
|
|
|
|
|
|
|
phases = [ "installPhase" ];
|
|
|
|
|
2021-03-09 03:18:52 +00:00
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
|
|
|
buildInputs = [ env ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/bin
|
|
|
|
makeWrapper ${env}/bin/jsduck $out/bin/jsduck
|
|
|
|
'';
|
|
|
|
|
|
|
|
passthru.updateScript = bundlerUpdateScript "jsduck";
|
|
|
|
|
|
|
|
meta = with lib; {
|
2020-10-19 00:13:06 +00:00
|
|
|
description = "Simple JavaScript Duckumentation generator";
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://github.com/senchalabs/jsduck";
|
|
|
|
license = with licenses; gpl3;
|
|
|
|
maintainers = with maintainers; [ periklis nicknovitski ];
|
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
|
|
|
}
|