nixpkgs/pkgs/applications/virtualization/imgcrypt/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

33 lines
766 B
Nix
Raw Normal View History

2021-05-24 11:05:07 +00:00
{ buildGoModule, fetchFromGitHub, lib }:
buildGoModule rec {
pname = "imgcrypt";
2022-10-15 07:27:48 +00:00
version = "1.1.7";
2021-05-24 11:05:07 +00:00
src = fetchFromGitHub {
owner = "containerd";
repo = pname;
rev = "v${version}";
2022-10-15 07:27:48 +00:00
sha256 = "sha256-VGP63tGyYD/AtjEZD1uo8A2I/4Di7bfLeeaNat+coI4=";
2021-05-24 11:05:07 +00:00
};
2021-08-26 06:45:51 +00:00
ldflags = [
"-X github.com/containerd/containerd/version.Version=${version}"
2021-05-24 11:05:07 +00:00
];
vendorSha256 = null;
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 ];
};
}