2019-07-22 12:02:47 +00:00
|
|
|
{ stdenv, lib, bundlerEnv, makeWrapper, bundlerUpdateScript }:
|
2016-11-16 13:27:23 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "jsduck";
|
2019-07-22 12:02:47 +00:00
|
|
|
version = (import ./gemset.nix).jsduck.version;
|
2016-11-16 13:27:23 +00:00
|
|
|
|
|
|
|
env = bundlerEnv {
|
2019-09-08 23:38:31 +00:00
|
|
|
name = pname;
|
2016-11-16 13:27:23 +00:00
|
|
|
gemfile = ./Gemfile;
|
|
|
|
lockfile = ./Gemfile.lock;
|
|
|
|
gemset = ./gemset.nix;
|
|
|
|
};
|
|
|
|
|
|
|
|
phases = [ "installPhase" ];
|
|
|
|
|
2021-02-07 09:17:39 +00:00
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
|
|
|
buildInputs = [ env ];
|
2016-11-16 13:27:23 +00:00
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/bin
|
|
|
|
makeWrapper ${env}/bin/jsduck $out/bin/jsduck
|
|
|
|
'';
|
|
|
|
|
2019-07-22 12:02:47 +00:00
|
|
|
passthru.updateScript = bundlerUpdateScript "jsduck";
|
|
|
|
|
2016-11-16 13:27:23 +00:00
|
|
|
meta = with lib; {
|
2020-10-11 05:55:05 +00:00
|
|
|
description = "Simple JavaScript Duckumentation generator";
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://github.com/senchalabs/jsduck";
|
2016-11-16 13:27:23 +00:00
|
|
|
license = with licenses; gpl3;
|
2019-07-22 12:02:47 +00:00
|
|
|
maintainers = with maintainers; [ periklis nicknovitski ];
|
2016-11-16 13:27:23 +00:00
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
|
|
|
}
|