mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-15 10:12:58 +00:00
34 lines
763 B
Nix
34 lines
763 B
Nix
{ buildGoModule, fetchFromGitHub, lib }:
|
|
|
|
buildGoModule rec {
|
|
pname = "imgcrypt";
|
|
version = "1.1.9";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "containerd";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
hash = "sha256-EStyi6RDK1G6kuaDGumZaHB4OrSrhhx/F5GsLe0amyA=";
|
|
};
|
|
|
|
vendorHash = null;
|
|
|
|
ldflags = [
|
|
"-X github.com/containerd/containerd/version.Version=${version}"
|
|
];
|
|
|
|
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 ];
|
|
};
|
|
}
|