mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-30 10:53:11 +00:00
b7fbcf971a
diff: https://github.com/cookpete/auto-changelog/compare/v2.4.0...v2.5.0 changelog: https://github.com/cookpete/auto-changelog/blob/master/CHANGELOG.md#v250
52 lines
1.1 KiB
Nix
52 lines
1.1 KiB
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchYarnDeps,
|
|
fetchFromGitHub,
|
|
yarnConfigHook,
|
|
npmHooks,
|
|
nodejs,
|
|
git,
|
|
}:
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
pname = "auto-changelog";
|
|
version = "2.5.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "cookpete";
|
|
repo = "auto-changelog";
|
|
rev = "v${finalAttrs.version}";
|
|
hash = "sha256-ticQpDOQieLaWXfavDKIH0jSenRimp5QYeJy42BjpKw=";
|
|
};
|
|
|
|
yarnOfflineCache = fetchYarnDeps {
|
|
yarnLock = "${finalAttrs.src}/yarn.lock";
|
|
hash = "sha256-NGQbzogQi0XbeGd7fYNyw0i9Yo9j91CfeTdO7nhq4Yw=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
yarnConfigHook
|
|
npmHooks.npmInstallHook
|
|
nodejs
|
|
];
|
|
|
|
doCheck = true;
|
|
|
|
nativeCheckInputs = [ git ];
|
|
|
|
checkPhase = ''
|
|
runHook preCheck
|
|
yarn --offline run test -i -g 'compileTemplate'
|
|
runHook postCheck
|
|
'';
|
|
|
|
meta = {
|
|
description = "Command line tool for generating a changelog from git tags and commit history";
|
|
homepage = "https://github.com/cookpete/auto-changelog";
|
|
changelog = "https://github.com/cookpete/auto-changelog/blob/master/CHANGELOG.md";
|
|
license = lib.licenses.mit;
|
|
mainProgram = "auto-changelog";
|
|
maintainers = with lib.maintainers; [ pyrox0 ];
|
|
};
|
|
})
|