nixpkgs/pkgs/tools/security/s5/default.nix

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

32 lines
718 B
Nix
Raw Normal View History

{ lib, buildGoModule, fetchFromGitHub }:
buildGoModule rec {
pname = "s5";
version = "0.1.12";
src = fetchFromGitHub {
owner = "mvisonneau";
repo = pname;
rev = "v${version}";
2023-09-14 14:05:22 +00:00
hash = "sha256-lTbTD5t80+R9hQeytNE2/Cs8dofdiYEP3zkc084mdAA=";
};
2023-09-14 14:05:22 +00:00
vendorHash = "sha256-TrCIUeY0B+BsWNaUkDTEgrEaWfJKnID2mafj3ink+i8=";
subPackages = [ "cmd/${pname}" ];
ldflags = [
"-X main.version=v${version}"
];
doCheck = true;
meta = with lib; {
description = "cipher/decipher text within a file";
homepage = "https://github.com/mvisonneau/s5";
license = licenses.asl20;
platforms = platforms.unix ++ platforms.darwin;
maintainers = with maintainers; [ mvisonneau ];
};
}