Skip to content

Commit

Permalink
feat(flake): add normalize, patch binaries
Browse files Browse the repository at this point in the history
  • Loading branch information
j4m3s-s committed Jan 5, 2022
1 parent a2b1739 commit 6659ab5
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
result*
.*.*.sw*
.*.sw*
normalize-docker-image-name
patch-docker-image-name
26 changes: 24 additions & 2 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,30 @@
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.0";

src = ./.;

vendorSha256 = vendorSha256;
subPackages = [ "cmd/patch-docker-image-name" ];
};

normalize-docker-image-name = pkgs.buildGoModule {
CGO_ENABLED = "0";
pname = "normalize-docker-image-name";
version = "0.1.0";

src = ./.;

vendorSha256 = vendorSha256;
subPackages = [ "cmd/normalize-docker-image-name" ];
};

k8s-proxy-image-swapper = pkgs.buildGoModule {
CGO_ENABLED = "0";

Expand All @@ -16,7 +38,7 @@

src = ./.;

vendorSha256 = "sha256-rHaqxAb27amS36msMo3Ry70UWzTbuK/jT4HLKkeDP4Y=";
vendorSha256 = vendorSha256;
subPackages = [ "." ];
};

Expand Down

0 comments on commit 6659ab5

Please sign in to comment.