3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/tools/jsduck/default.nix

33 lines
805 B
Nix
Raw Normal View History

{ stdenv, lib, bundlerEnv, makeWrapper, bundlerUpdateScript }:
2016-11-16 13:27:23 +00:00
stdenv.mkDerivation rec {
pname = "jsduck";
version = (import ./gemset.nix).jsduck.version;
2016-11-16 13:27:23 +00:00
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";
2016-11-16 13:27:23 +00:00
meta = with lib; {
description = "Simple JavaScript Duckumentation generator.";
homepage = https://github.com/senchalabs/jsduck;
license = with licenses; gpl3;
maintainers = with maintainers; [ periklis nicknovitski ];
2016-11-16 13:27:23 +00:00
platforms = platforms.unix;
};
}