mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 15:03:28 +00:00
goreleaser: nixfmt
This commit is contained in:
parent
ae2a0a82c0
commit
c7a7caec6d
@ -1,11 +1,12 @@
|
||||
{ stdenv
|
||||
, lib
|
||||
, buildGoModule
|
||||
, fetchFromGitHub
|
||||
, installShellFiles
|
||||
, buildPackages
|
||||
, testers
|
||||
, goreleaser
|
||||
{
|
||||
stdenv,
|
||||
lib,
|
||||
buildGoModule,
|
||||
fetchFromGitHub,
|
||||
installShellFiles,
|
||||
buildPackages,
|
||||
testers,
|
||||
goreleaser,
|
||||
}:
|
||||
buildGoModule rec {
|
||||
pname = "goreleaser";
|
||||
@ -20,8 +21,12 @@ buildGoModule rec {
|
||||
|
||||
vendorHash = "sha256-3gC2wZz3t6ObqAJ2g80kTrW2OEAyBptdqmN7cQKqZ/w=";
|
||||
|
||||
ldflags =
|
||||
[ "-s" "-w" "-X main.version=${version}" "-X main.builtBy=nixpkgs" ];
|
||||
ldflags = [
|
||||
"-s"
|
||||
"-w"
|
||||
"-X main.version=${version}"
|
||||
"-X main.builtBy=nixpkgs"
|
||||
];
|
||||
|
||||
# tests expect the source files to be a build repo
|
||||
doCheck = false;
|
||||
@ -29,8 +34,10 @@ buildGoModule rec {
|
||||
nativeBuildInputs = [ installShellFiles ];
|
||||
|
||||
postInstall =
|
||||
let emulator = stdenv.hostPlatform.emulator buildPackages;
|
||||
in ''
|
||||
let
|
||||
emulator = stdenv.hostPlatform.emulator buildPackages;
|
||||
in
|
||||
''
|
||||
${emulator} $out/bin/goreleaser man > goreleaser.1
|
||||
installManPage ./goreleaser.1
|
||||
installShellCompletion --cmd goreleaser \
|
||||
|
Loading…
Reference in New Issue
Block a user