fa5436e0a7
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
42 lines
992 B
Nix
42 lines
992 B
Nix
{ cctools
|
|
, buildNpmPackage
|
|
, fetchFromGitHub
|
|
, lib
|
|
, python3
|
|
, stdenv
|
|
}:
|
|
|
|
buildNpmPackage rec {
|
|
pname = "semantic-release";
|
|
version = "24.0.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "semantic-release";
|
|
repo = "semantic-release";
|
|
rev = "v${version}";
|
|
hash = "sha256-UoxsuCGWgHL7tYrBKS83VUkvGTUMBtpdO8ByKv5Dbrk=";
|
|
};
|
|
|
|
npmDepsHash = "sha256-MmdgUa3j3MD/SCqtMtAGvocHTgv5OIu8RdT27JgNvcg=";
|
|
|
|
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";
|
|
mainProgram = "semantic-release";
|
|
homepage = "https://semantic-release.gitbook.io/semantic-release/";
|
|
license = lib.licenses.mit;
|
|
maintainers = [ lib.maintainers.sestrella ];
|
|
};
|
|
}
|