Switch to overlay
This commit is contained in:
parent
26de366ceb
commit
fd2922cc97
4 changed files with 57 additions and 0 deletions
|
@ -1,3 +1,8 @@
|
|||
# nixuniverse
|
||||
|
||||
## Quick start
|
||||
|
||||
```
|
||||
nix-shell -E "with import <nixpkgs> { overlays = [ (import ./default.nix) ];}; mkShell { buildInputs = [ kaniko manifest-tool ]; }"
|
||||
```
|
||||
|
||||
|
|
4
default.nix
Normal file
4
default.nix
Normal file
|
@ -0,0 +1,4 @@
|
|||
self: super: {
|
||||
kaniko = (import ./kaniko.nix) super;
|
||||
manifest-tool = (import ./manifest-tool.nix) super;
|
||||
}
|
24
kaniko.nix
Normal file
24
kaniko.nix
Normal file
|
@ -0,0 +1,24 @@
|
|||
pkgs:
|
||||
pkgs.buildGoModule rec {
|
||||
pname = "kaniko";
|
||||
version = "1.9.1";
|
||||
|
||||
src = pkgs.fetchFromGitHub {
|
||||
owner = "GoogleContainerTools";
|
||||
repo = "kaniko";
|
||||
rev = "v${version}";
|
||||
sha256 = "sha256-TXgzO/NfLXVo5a7yyO3XYSk+9H1CwMF+vwbRx3kchQ8=";
|
||||
};
|
||||
|
||||
vendorSha256 = null;
|
||||
|
||||
checkPhase = "true";
|
||||
|
||||
meta = with pkgs.lib; {
|
||||
description =
|
||||
"kaniko is a tool to build container images from a Dockerfile, inside a container or Kubernetes cluster.";
|
||||
homepage = "https://github.com/GoogleContainerTools/kaniko";
|
||||
license = licenses.asl20;
|
||||
platforms = platforms.linux;
|
||||
};
|
||||
}
|
24
manifest-tool.nix
Normal file
24
manifest-tool.nix
Normal file
|
@ -0,0 +1,24 @@
|
|||
pkgs:
|
||||
pkgs.buildGoModule rec {
|
||||
pname = "manifest-tool";
|
||||
version = "2.0.5";
|
||||
|
||||
src = pkgs.fetchFromGitHub {
|
||||
owner = "estesp";
|
||||
repo = "manifest-tool";
|
||||
rev = "v${version}";
|
||||
sha256 = "hjCGKnE0yrlnF/VIzOwcDzmQX3Wft+21KCny/opqdLg=";
|
||||
} + "/v2";
|
||||
|
||||
vendorSha256 = null;
|
||||
|
||||
checkPhase = "true";
|
||||
|
||||
meta = with pkgs.lib; {
|
||||
description =
|
||||
"Command line tool to create and query container image manifest list/indexes";
|
||||
homepage = "https://github.com/estesp/manifest-tool";
|
||||
license = licenses.asl20;
|
||||
platforms = platforms.linux;
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue