at 23.11-beta 33 lines 763 B view raw
1{ buildGoModule, fetchFromGitHub, lib }: 2 3buildGoModule rec { 4 pname = "imgcrypt"; 5 version = "1.1.9"; 6 7 src = fetchFromGitHub { 8 owner = "containerd"; 9 repo = pname; 10 rev = "v${version}"; 11 hash = "sha256-EStyi6RDK1G6kuaDGumZaHB4OrSrhhx/F5GsLe0amyA="; 12 }; 13 14 vendorHash = null; 15 16 ldflags = [ 17 "-X github.com/containerd/containerd/version.Version=${version}" 18 ]; 19 20 subPackages = [ "cmd/ctd-decoder" "cmd/ctr" ]; 21 22 postFixup = '' 23 mv $out/bin/ctr $out/bin/ctr-enc 24 ''; 25 26 meta = with lib; { 27 description = "Image encryption library and command line tool"; 28 homepage = "https://github.com/containerd/imgcrypt"; 29 license = licenses.asl20; 30 platforms = platforms.linux; 31 maintainers = with maintainers; [ mikroskeem ]; 32 }; 33}