nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 rustPlatform,
3 lib,
4 fetchFromGitHub,
5 pkg-config,
6 openssl,
7}:
8
9rustPlatform.buildRustPackage rec {
10 pname = "kty";
11 version = "0.3.1";
12
13 src = fetchFromGitHub {
14 owner = "grampelberg";
15 repo = "kty";
16 tag = "v${version}";
17 hash = "sha256-E9PqWDBKYJFYOUNyjiK+AM2WULMiwupFWTOQlBH+6d4=";
18 };
19
20 nativeBuildInputs = [
21 pkg-config
22 ];
23
24 env = {
25 OPENSSL_NO_VENDOR = 1;
26 };
27
28 buildInputs = [
29 openssl
30 ];
31
32 cargoHash = "sha256-nJ+nof2YhyLrNuLVy69kYj5tw+aG4IJm6nVxHkczbko=";
33
34 meta = {
35 homepage = "https://kty.dev/";
36 changelog = "https://github.com/grampelberg/kty/releases/tag/v${version}";
37 description = "Terminal for Kubernetes";
38 maintainers = with lib.maintainers; [ bot-wxt1221 ];
39 platforms = lib.platforms.unix;
40 mainProgram = "kty";
41 };
42}