2023-07-15 17:15:38 +00:00
|
|
|
{ cctools
|
|
|
|
, buildNpmPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, lib
|
|
|
|
, python3
|
|
|
|
, stdenv
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildNpmPackage rec {
|
|
|
|
pname = "semantic-release";
|
2024-01-02 11:29:13 +00:00
|
|
|
version = "22.0.12";
|
2023-07-15 17:15:38 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "semantic-release";
|
|
|
|
repo = "semantic-release";
|
|
|
|
rev = "v${version}";
|
2024-01-02 11:29:13 +00:00
|
|
|
hash = "sha256-enBfQapJdssMiwu07f3EZO80iTy+/XLot2W+rHfmN4I=";
|
2023-07-15 17:15:38 +00:00
|
|
|
};
|
|
|
|
|
2024-01-02 11:29:13 +00:00
|
|
|
npmDepsHash = "sha256-8m6j4OHupcrU21MHvePmqNAAx2ANEu5YVV96WnTxTL4=";
|
2023-07-15 17:15:38 +00:00
|
|
|
|
|
|
|
dontNpmBuild = true;
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
python3
|
|
|
|
] ++ lib.optional stdenv.isDarwin cctools;
|
|
|
|
|
|
|
|
# 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";
|
|
|
|
homepage = "https://semantic-release.gitbook.io/semantic-release/";
|
|
|
|
license = lib.licenses.mit;
|
|
|
|
maintainers = [ lib.maintainers.sestrella ];
|
|
|
|
};
|
|
|
|
}
|