mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-30 19:02:57 +00:00
34 lines
818 B
Nix
34 lines
818 B
Nix
{ 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;
|
|
};
|
|
|
|
dontUnpack = true;
|
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
|
buildInputs = [ env ];
|
|
|
|
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;
|
|
};
|
|
}
|