5c370c0b2a
GitOrigin-RevId: 33d1e753c82ffc557b4a585c77de43d4c922ebb5
36 lines
871 B
Nix
36 lines
871 B
Nix
{ lib
|
|
, buildGoModule
|
|
, fetchFromGitHub
|
|
, nixosTests
|
|
}:
|
|
|
|
buildGoModule rec {
|
|
pname = "c2FmZQ";
|
|
version = "0.4.20";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "c2FmZQ";
|
|
repo = "c2FmZQ";
|
|
rev = "v${version}";
|
|
hash = "sha256-ur1zZdDAGl97RDhs0ucc9UAvufI/DG49cn8HaXx3gxs=";
|
|
};
|
|
|
|
ldflags = [ "-s" "-w" ];
|
|
|
|
sourceRoot = "${src.name}/c2FmZQ";
|
|
|
|
vendorHash = "sha256-wZ8+w1UFx55whodAXKhQ4EbtMXkbztYLjpqEVvdrAF8=";
|
|
|
|
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;
|
|
};
|
|
}
|