mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-20 19:16:11 +00:00

We are migrating packages that meet below requirements: 1. using `callPackage` 2. called path is a directory 3. overriding set is empty (`{ }`) 4. not containing path expressions other than relative path (to makenixpkgs-vet happy) 5. not referenced by nix files outside of the directory, other than`pkgs/top-level/all-packages.nix` 6. not referencing nix files outside of the directory 7. not referencing `default.nix` (since it's changed to `package.nix`) 8. `outPath` doesn't change after migration The tool is here: https://github.com/Aleksanaa/by-name-migrate.
29 lines
933 B
Nix
29 lines
933 B
Nix
{ lib, fetchgit, rustPlatform, pkg-config, openssl, systemd }:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "journaldriver";
|
|
version = "5656.0.0";
|
|
cargoHash = "sha256-uNzgH9UM2DuC+dBn5N9tC1/AosUP6C+RkGLOh6c+u0s=";
|
|
|
|
src = fetchgit {
|
|
url = "https://code.tvl.fyi/depot.git:/ops/journaldriver.git";
|
|
sha256 = "0bnf67k6pkw4rngn58b5zm19danr4sh2g6rfd4k5w2sa1lzqai04";
|
|
|
|
# TVL revision r/5656; as of 2023-01-13 the revision tag is
|
|
# unavailable through git, hence the pinned hash.
|
|
rev = "4e191353228197ce548d63cb9955e53661244f9c";
|
|
};
|
|
|
|
buildInputs = [ openssl systemd ];
|
|
nativeBuildInputs = [ pkg-config ];
|
|
|
|
meta = with lib; {
|
|
description = "Log forwarder from journald to Stackdriver Logging";
|
|
homepage = "https://code.tvl.fyi/about/ops/journaldriver";
|
|
license = licenses.gpl3;
|
|
maintainers = [ maintainers.tazjin ];
|
|
platforms = platforms.linux;
|
|
mainProgram = "journaldriver";
|
|
};
|
|
}
|