base16-schemes: unstable-2024-06-21 -> unstable-2024-11-12
[NixPkgs.git] / pkgs / by-name / se / semantic-release / package.nix
blobf5cc94fea54b9379839f27044990b8feeb2a8452
1 { cctools
2 , buildNpmPackage
3 , fetchFromGitHub
4 , lib
5 , python3
6 , stdenv
7 }:
9 buildNpmPackage rec {
10   pname = "semantic-release";
11   version = "24.1.2";
13   src = fetchFromGitHub {
14     owner = "semantic-release";
15     repo = "semantic-release";
16     rev = "v${version}";
17     hash = "sha256-YeTKW7Aq7VLCD8FabnqDTcgvSeHNa96ZT8KQ4KNrrw4=";
18   };
20   npmDepsHash = "sha256-pyTfdVdaHi8oABhI6GoHi6HusTUMEyngGAR2Tw5bF2c=";
22   dontNpmBuild = true;
24   nativeBuildInputs = [
25     python3
26   ] ++ lib.optional stdenv.hostPlatform.isDarwin cctools;
28   # Fixes `semantic-release --version` output
29   postPatch = ''
30     substituteInPlace package.json --replace \
31       '"version": "0.0.0-development"' \
32       '"version": "${version}"'
33   '';
35   meta = {
36     description = "Fully automated version management and package publishing";
37     mainProgram = "semantic-release";
38     homepage = "https://semantic-release.gitbook.io/semantic-release/";
39     license = lib.licenses.mit;
40     maintainers = [ lib.maintainers.sestrella ];
41   };