rocmPackages.llvm.libcxx: fix build by disabling test (#375850)
[NixPkgs.git] / pkgs / by-name / ch / changie / package.nix
blob37d0b8f74030978b95f524bf68413a7c37e6d008
2   lib,
3   buildGoModule,
4   fetchFromGitHub,
5   installShellFiles,
6 }:
8 buildGoModule rec {
9   pname = "changie";
10   version = "1.19.1";
12   src = fetchFromGitHub {
13     owner = "miniscruff";
14     repo = "changie";
15     rev = "v${version}";
16     hash = "sha256-FZR3KWBCulTbE1Rn6T1neJsjbps0HBPSzzZ57lngB/8=";
17   };
19   vendorHash = "sha256-2SkHId5BDAv525PISLjlrP862Z2fJDN4L839rz8rWaw=";
21   nativeBuildInputs = [
22     installShellFiles
23   ];
25   ldflags = [
26     "-s"
27     "-w"
28     "-X=main.version=${version}"
29   ];
31   postInstall = ''
32     installShellCompletion --cmd changie \
33       --bash <($out/bin/changie completion bash) \
34       --fish <($out/bin/changie completion fish) \
35       --zsh <($out/bin/changie completion zsh)
36   '';
38   meta = with lib; {
39     description = "Automated changelog tool for preparing releases with lots of customization options";
40     mainProgram = "changie";
41     homepage = "https://changie.dev";
42     changelog = "https://github.com/miniscruff/changie/blob/v${version}/CHANGELOG.md";
43     license = licenses.mit;
44     maintainers = with maintainers; [
45       figsoda
46       matthiasbeyer
47     ];
48   };