forked from Polyconseil/k8s-proxy-image-swapper
-
Notifications
You must be signed in to change notification settings - Fork 0
/
flake.nix
58 lines (44 loc) · 1.44 KB
/
flake.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
{
description = "A very basic flake";
outputs = { self, nixpkgs }: {
packages.x86_64-linux =
let
pkgs = import nixpkgs { system = "x86_64-linux"; };
vendorSha256 = "sha256-rHaqxAb27amS36msMo3Ry70UWzTbuK/jT4HLKkeDP4Y=";
in rec {
patch-docker-image-name = pkgs.buildGoModule {
CGO_ENABLED = "0";
pname = "patch-docker-image-name";
version = "0.1.1";
src = ./.;
inherit vendorSha256;
subPackages = [ "cmd/patch-docker-image-name" ];
};
normalize-docker-image-name = pkgs.buildGoModule {
CGO_ENABLED = "0";
pname = "normalize-docker-image-name";
version = "0.1.1";
src = ./.;
inherit vendorSha256;
subPackages = [ "cmd/normalize-docker-image-name" ];
};
k8s-proxy-image-swapper = pkgs.buildGoModule {
CGO_ENABLED = "0";
pname = "k8s-proxy-image-swapper";
version = "0.3.3";
src = ./.;
inherit vendorSha256;
subPackages = [ "." ];
};
oci-k8s-proxy-image-swapper = pkgs.dockerTools.buildLayeredImage {
name = "oci-k8s-proxy-image-swapper";
contents = [ k8s-proxy-image-swapper ];
config = {
Entrypoint = [ "${k8s-proxy-image-swapper}/bin/k8s-proxy-image-swapper" ];
User = "1000:1000";
};
};
};
defaultPackage.x86_64-linux = self.packages.x86_64-linux.k8s-proxy-image-swapper;
};
}