fork
Configure Feed
Select the types of activity you want to include in your feed.
nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
fork
Configure Feed
Select the types of activity you want to include in your feed.
1{
2 lib,
3 stdenv,
4 buildGoModule,
5 fetchFromGitHub,
6 installShellFiles,
7 testers,
8 kompose,
9 git,
10}:
11
12buildGoModule (finalAttrs: {
13 pname = "kompose";
14 version = "1.38.0";
15
16 src = fetchFromGitHub {
17 owner = "kubernetes";
18 repo = "kompose";
19 tag = "v${finalAttrs.version}";
20 hash = "sha256-d2rUkLGU9s2+LTBI3N7WZx1ByDv05DOUq/2OCQViiOM=";
21 };
22
23 vendorHash = "sha256-53G3nkz+uTwpgiZZFfmrv7Wv6d8iVm6xVyRuxjKA5Po=";
24
25 nativeBuildInputs = [
26 installShellFiles
27 git
28 ];
29
30 ldflags = [
31 "-s"
32 "-w"
33 ];
34
35 checkFlags = [ "-short" ];
36
37 postInstall = lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) ''
38 installShellCompletion --cmd ${finalAttrs.meta.mainProgram} \
39 --bash <($out/bin/${finalAttrs.meta.mainProgram} completion bash) \
40 --zsh <($out/bin/${finalAttrs.meta.mainProgram} completion zsh) \
41 --fish <($out/bin/${finalAttrs.meta.mainProgram} completion fish)
42 '';
43
44 passthru.tests.version = testers.testVersion {
45 package = kompose;
46 command = "kompose version";
47 };
48
49 meta = {
50 description = "Tool to help users who are familiar with docker-compose move to Kubernetes";
51 mainProgram = "kompose";
52 homepage = "https://kompose.io";
53 changelog = "https://github.com/kubernetes/kompose/releases/tag/${finalAttrs.src.tag}";
54 license = lib.licenses.asl20;
55 maintainers = with lib.maintainers; [
56 thpham
57 vdemeester
58 ];
59 };
60})