2021-05-29 03:34:57 +00:00
|
|
|
{ buildGoModule, fetchFromGitHub, lib }:
|
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "imgcrypt";
|
2023-08-22 20:05:09 +00:00
|
|
|
version = "1.1.8";
|
2021-05-29 03:34:57 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "containerd";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2023-08-22 20:05:09 +00:00
|
|
|
hash = "sha256-FLqFzEEfgsKcjAevhF6+8mR3zOUjfXyfWwWsxVOcdJU=";
|
2021-05-29 03:34:57 +00:00
|
|
|
};
|
|
|
|
|
2023-08-22 20:05:09 +00:00
|
|
|
vendorHash = null;
|
|
|
|
|
2021-08-27 14:25:00 +00:00
|
|
|
ldflags = [
|
|
|
|
"-X github.com/containerd/containerd/version.Version=${version}"
|
2021-05-29 03:34:57 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
subPackages = [ "cmd/ctd-decoder" "cmd/ctr" ];
|
|
|
|
|
|
|
|
postFixup = ''
|
|
|
|
mv $out/bin/ctr $out/bin/ctr-enc
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Image encryption library and command line tool";
|
|
|
|
homepage = "https://github.com/containerd/imgcrypt";
|
|
|
|
license = licenses.asl20;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = with maintainers; [ mikroskeem ];
|
|
|
|
};
|
|
|
|
}
|