mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-11 15:15:36 +00:00
46420bbaa3
treewide replacement of stdenv.mkDerivation rec { name = "*-${version}"; version = "*"; to pname
29 lines
774 B
Nix
29 lines
774 B
Nix
{ lib, systemd, buildGoPackage, fetchFromGitHub }:
|
|
|
|
buildGoPackage rec {
|
|
pname = "journalbeat";
|
|
version = "5.6.8";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "mheese";
|
|
repo = "journalbeat";
|
|
rev = "v${version}";
|
|
sha256 = "1vgpwnwqjc93nvdpcd52748bwl3r371jb55l17bsgdzrmlcyfm8a";
|
|
};
|
|
|
|
goPackagePath = "github.com/mheese/journalbeat";
|
|
|
|
buildInputs = [ systemd.dev ];
|
|
|
|
postFixup = let libPath = lib.makeLibraryPath [ systemd.lib ]; in ''
|
|
patchelf --set-rpath ${libPath} "$bin/bin/journalbeat"
|
|
'';
|
|
|
|
meta = with lib; {
|
|
homepage = https://github.com/mheese/journalbeat;
|
|
description = "Journalbeat is a log shipper from systemd/journald to Logstash/Elasticsearch";
|
|
license = licenses.asl20;
|
|
maintainers = with maintainers; [ mbrgm ];
|
|
};
|
|
}
|