pkgs/kata/0000700000175000001440000000000013451456612012333 5ustar tilpneruserspkgs/kata/proxy.nix0000600000175000001440000000111513451456612014234 0ustar tilpnerusers{ buildGoPackage, fetchFromGitHub, go, git }: buildGoPackage rec { name = "kata-proxy-${version}"; version = "1.0.0"; goPackagePath = "github.com/kata-containers/proxy"; src = fetchFromGitHub { owner = "kata-containers"; repo = "proxy"; rev = version; sha256 = "1l640bf1k0823pwkmrcl5kvczl8104jwfkd7zfjl0sl0s9hdc105"; }; buildFlagsArray = [ "-ldflags= -X main.version=${version}" ]; installPhase = '' install -D go/bin/proxy $bin/libexec/kata-containers/kata-proxy find $bin -type f -exec remove-references-to -t ${go} '{}' '+' ''; } pkgs/kata/default.nix0000600000175000001440000000027013451456612014500 0ustar tilpnerusers{ callPackage }: { runtime = callPackage ./runtime.nix {}; osbuilder = callPackage ./osbuilder.nix {}; proxy = callPackage ./proxy.nix {}; shim = callPackage ./shim.nix {}; } pkgs/kata/osbuilder.nix0000600000175000001440000000026113451456612015044 0ustar tilpnerusers{ fetchFromGitHub }: fetchFromGitHub { owner = "kata-containers"; repo = "osbuilder"; rev = "1.0.0"; sha256 = "0l9135xf44h81rrny4anc0lzi1ndd5vi31m41vbsb7nhjr8ibbwb"; } pkgs/kata/runtime.nix0000600000175000001440000000117313451456612014542 0ustar tilpnerusers{ stdenv, buildGoPackage, fetchFromGitHub, go, git }: buildGoPackage rec { name = "kata-runtime-${version}"; version = "1.0.0"; goPackagePath = "github.com/kata-containers/runtime"; src = fetchFromGitHub { owner = "kata-containers"; repo = "runtime"; rev = version; sha256 = "1xiy4z32fzb3jd84x2x1vxy6z4vgz6l9ni7b395v99r0wlvg5mwh"; }; postConfigure = '' make -C go/src/github.com/kata-containers/runtime \ cli/config-generated.go cli/config/configuration.toml ''; postInstall = '' mv $bin/bin/cli $bin/bin/kata-runtime ''; # See nixpkgs#25959 hardeningDisable = [ "fortify" ]; } pkgs/kata/shim.nix0000600000175000001440000000110313451456612014010 0ustar tilpnerusers{ buildGoPackage, fetchFromGitHub, go }: buildGoPackage rec { name = "kata-shim-${version}"; version = "1.0.0"; goPackagePath = "github.com/kata-containers/shim"; src = fetchFromGitHub { owner = "kata-containers"; repo = "shim"; rev = version; sha256 = "14fbvp0xz7xw3109yhv3yyk2712xrmnl09j0vylxhnj1lykcw04z"; }; buildFlagsArray = [ "-ldflags= -X main.version=${version}" ]; installPhase = '' install -D go/bin/shim $bin/libexec/kata-containers/kata-shim find $bin -type f -exec remove-references-to -t ${go} '{}' '+' ''; }