depot/third_party/nixpkgs/pkgs/by-name/c2/c2fmzq/package.nix
Default email 159e378cbb Project import generated by Copybara.
GitOrigin-RevId: c04d5652cfa9742b1d519688f65d1bbccea9eb7e
2024-09-19 17:19:46 +03:00

36 lines
871 B
Nix

{ lib
, buildGoModule
, fetchFromGitHub
, nixosTests
}:
buildGoModule rec {
pname = "c2FmZQ";
version = "0.4.22";
src = fetchFromGitHub {
owner = "c2FmZQ";
repo = "c2FmZQ";
rev = "v${version}";
hash = "sha256-IqLG8dLi47Swp6YPxDXsM6LVDPvzcH5rWeqpgghbYsE=";
};
ldflags = [ "-s" "-w" ];
sourceRoot = "${src.name}/c2FmZQ";
vendorHash = "sha256-PTWi/M51cydmWoOj1JPyaI0wbjd0BMLlaSlQRIcmShg=";
subPackages = [ "c2FmZQ-client" "c2FmZQ-server" ];
passthru.tests = { inherit (nixosTests) c2fmzq; };
meta = with lib; {
description = "Securely encrypt, store, and share files, including but not limited to pictures and videos";
homepage = "https://github.com/c2FmZQ/c2FmZQ";
license = licenses.gpl3Only;
mainProgram = "c2FmZQ-server";
maintainers = with maintainers; [ hmenke ];
platforms = platforms.linux;
};
}