mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-29 09:04:17 +00:00
e13831335f
* treewide: stdenv.is -> stdenv.hostPlatform.is * treewide: nixfmt due to ci error
52 lines
985 B
Nix
52 lines
985 B
Nix
{
|
|
rustPlatform,
|
|
lib,
|
|
fetchFromGitHub,
|
|
pkg-config,
|
|
openssl,
|
|
stdenv,
|
|
darwin,
|
|
}:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "kty";
|
|
version = "0.3.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "grampelberg";
|
|
repo = "kty";
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-E9PqWDBKYJFYOUNyjiK+AM2WULMiwupFWTOQlBH+6d4=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
pkg-config
|
|
];
|
|
|
|
env = {
|
|
OPENSSL_NO_VENDOR = 1;
|
|
};
|
|
|
|
buildInputs =
|
|
[
|
|
openssl
|
|
]
|
|
++ lib.optionals stdenv.hostPlatform.isDarwin (
|
|
with darwin.apple_sdk;
|
|
[
|
|
frameworks.SystemConfiguration
|
|
]
|
|
);
|
|
|
|
cargoHash = "sha256-mhXi4YgYT2NfIjtESjvSP5TMOl3UH3CJFwKlJriZ0/4=";
|
|
|
|
meta = {
|
|
homepage = "https://kty.dev/";
|
|
changelog = "https://github.com/grampelberg/kty/releases/tag/v${version}";
|
|
description = "Terminal for Kubernetes";
|
|
maintainers = with lib.maintainers; [ bot-wxt1221 ];
|
|
platforms = lib.platforms.unix;
|
|
mainProgram = "kty";
|
|
};
|
|
}
|