semantic-release: init at 21.0.5
This commit is contained in:
parent
f5eb471c4b
commit
b48ba787e5
41
pkgs/development/tools/semantic-release/default.nix
Normal file
41
pkgs/development/tools/semantic-release/default.nix
Normal file
@ -0,0 +1,41 @@
|
||||
{ cctools
|
||||
, buildNpmPackage
|
||||
, fetchFromGitHub
|
||||
, lib
|
||||
, python3
|
||||
, stdenv
|
||||
}:
|
||||
|
||||
buildNpmPackage rec {
|
||||
pname = "semantic-release";
|
||||
version = "21.0.5";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "semantic-release";
|
||||
repo = "semantic-release";
|
||||
rev = "v${version}";
|
||||
hash = "sha256-QFBYIoOd1htSNj3xKl0HvmD1T068Jv+L/EqCbMrn0lw=";
|
||||
};
|
||||
|
||||
npmDepsHash = "sha256-0GhDXGyVoMwz+vVFdplv7ObTiTRTvQDd9r9e6616iTI=";
|
||||
|
||||
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 ];
|
||||
};
|
||||
}
|
@ -12328,6 +12328,10 @@ with pkgs;
|
||||
|
||||
selectdefaultapplication = libsForQt5.callPackage ../applications/misc/selectdefaultapplication { };
|
||||
|
||||
semantic-release = callPackage ../development/tools/semantic-release {
|
||||
inherit (darwin) cctools;
|
||||
};
|
||||
|
||||
semgrep = python3.pkgs.callPackage ../tools/security/semgrep { };
|
||||
semgrep-core = callPackage ../tools/security/semgrep/semgrep-core.nix { };
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user