nixpkgs/pkgs/development/tools/teller/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

58 lines
1.1 KiB
Nix
Raw Normal View History

2024-05-29 06:53:07 +00:00
{
lib,
rustPlatform,
fetchFromGitHub,
nix-update-script,
protobuf,
stdenv,
darwin,
pkg-config,
openssl,
}:
2023-06-27 19:55:53 +00:00
let
pname = "teller";
2024-05-29 06:53:07 +00:00
version = "2.0.7";
date = "2024-05-19";
2023-06-27 19:55:53 +00:00
in
2024-05-29 06:53:07 +00:00
rustPlatform.buildRustPackage {
2023-06-27 19:55:53 +00:00
inherit pname version;
src = fetchFromGitHub {
owner = "tellerops";
repo = pname;
rev = "v${version}";
2024-05-29 06:53:07 +00:00
hash = "sha256-CI74nMMTIPwjJfy7ASR19V6EbYZ62NoAOxlP3Xt2BuI=";
2023-06-27 19:55:53 +00:00
};
2024-05-29 06:53:07 +00:00
cargoHash = "sha256-iqZX+9l3TWrFuaQreNz4RrCgPQCyKJt6RJ1UeKYaNRs=";
2023-06-27 19:55:53 +00:00
2024-05-29 06:53:07 +00:00
nativeBuildInputs = [
protobuf
pkg-config
];
2023-06-27 19:55:53 +00:00
2024-05-29 06:53:07 +00:00
buildInputs = [
openssl
] ++ lib.optionals stdenv.isDarwin [ darwin.apple_sdk.frameworks.SystemConfiguration ];
2023-06-27 19:55:53 +00:00
2024-05-29 06:53:07 +00:00
doCheck = false;
2023-06-27 19:55:53 +00:00
2024-05-29 06:53:07 +00:00
doInstallCheck = true;
installCheckPhase = ''
$out/bin/teller --version 2>&1 | grep ${version};
2023-06-27 19:55:53 +00:00
'';
passthru.updateScript = nix-update-script { };
meta = with lib; {
homepage = "https://github.com/tellerops/teller/";
description = "Cloud native secrets management for developers";
mainProgram = "teller";
2023-06-27 19:55:53 +00:00
license = licenses.asl20;
2024-05-29 06:53:07 +00:00
maintainers = with maintainers; [
cameronraysmith
wahtique
];
2023-06-27 19:55:53 +00:00
};
}