2023-07-15 17:15:38 +00:00
|
|
|
{ cctools
|
|
|
|
, buildNpmPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, lib
|
|
|
|
, python3
|
|
|
|
, stdenv
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildNpmPackage rec {
|
|
|
|
pname = "semantic-release";
|
2024-09-19 14:19:46 +00:00
|
|
|
version = "24.1.1";
|
2023-07-15 17:15:38 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "semantic-release";
|
|
|
|
repo = "semantic-release";
|
|
|
|
rev = "v${version}";
|
2024-09-19 14:19:46 +00:00
|
|
|
hash = "sha256-BGSe05I1NconPkPCzGOOLPbH/JSlwXvAWbViJVYMU/c=";
|
2023-07-15 17:15:38 +00:00
|
|
|
};
|
|
|
|
|
2024-09-19 14:19:46 +00:00
|
|
|
npmDepsHash = "sha256-DsBklxeY9RbvFsEA56vkmvVms+W9mr9qA/JVgAgs81k=";
|
2023-07-15 17:15:38 +00:00
|
|
|
|
|
|
|
dontNpmBuild = true;
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
python3
|
2024-09-26 11:04:55 +00:00
|
|
|
] ++ lib.optional stdenv.hostPlatform.isDarwin cctools;
|
2023-07-15 17:15:38 +00:00
|
|
|
|
|
|
|
# Fixes `semantic-release --version` output
|
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace package.json --replace \
|
|
|
|
'"version": "0.0.0-development"' \
|
|
|
|
'"version": "${version}"'
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Fully automated version management and package publishing";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "semantic-release";
|
2023-07-15 17:15:38 +00:00
|
|
|
homepage = "https://semantic-release.gitbook.io/semantic-release/";
|
|
|
|
license = lib.licenses.mit;
|
|
|
|
maintainers = [ lib.maintainers.sestrella ];
|
|
|
|
};
|
|
|
|
}
|