nixpkgs/pkgs/development/tools/jsduck/default.nix
2019-07-22 12:02:47 +00:00

34 lines
837 B
Nix

{ stdenv, lib, bundlerEnv, makeWrapper, bundlerUpdateScript }:
stdenv.mkDerivation rec {
pname = "jsduck";
name = "${pname}-${version}";
version = (import ./gemset.nix).jsduck.version;
env = bundlerEnv {
name = "${pname}";
gemfile = ./Gemfile;
lockfile = ./Gemfile.lock;
gemset = ./gemset.nix;
};
phases = [ "installPhase" ];
buildInputs = [ env makeWrapper ];
installPhase = ''
mkdir -p $out/bin
makeWrapper ${env}/bin/jsduck $out/bin/jsduck
'';
passthru.updateScript = bundlerUpdateScript "jsduck";
meta = with lib; {
description = "Simple JavaScript Duckumentation generator.";
homepage = https://github.com/senchalabs/jsduck;
license = with licenses; gpl3;
maintainers = with maintainers; [ periklis nicknovitski ];
platforms = platforms.unix;
};
}