mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-25 07:00:43 +00:00
32 lines
729 B
Nix
32 lines
729 B
Nix
{ stdenv, lib, bundlerEnv, makeWrapper, }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "jsduck";
|
|
name = "${pname}-${version}";
|
|
version = "5.3.4";
|
|
|
|
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
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "Simple JavaScript Duckumentation generator.";
|
|
homepage = https://github.com/senchalabs/jsduck;
|
|
license = with licenses; gpl3;
|
|
maintainers = with stdenv.lib.maintainers; [ periklis ];
|
|
platforms = platforms.unix;
|
|
};
|
|
}
|