2023-10-01 22:08:53 +02:00
|
|
|
{ lib
|
|
|
|
, buildGoModule
|
|
|
|
, fetchFromGitHub
|
2023-10-01 22:09:53 +02:00
|
|
|
, nixosTests
|
2023-10-01 22:08:53 +02:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "c2FmZQ";
|
2023-10-27 15:45:00 +02:00
|
|
|
version = "0.4.9";
|
2023-10-01 22:08:53 +02:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "c2FmZQ";
|
|
|
|
repo = "c2FmZQ";
|
|
|
|
rev = "v${version}";
|
2023-10-27 15:45:00 +02:00
|
|
|
hash = "sha256-xrQBL/Xjzsg0jZ7cFuDfjCQhmt/dTD8FoCSlw0sX5MQ=";
|
2023-10-01 22:08:53 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
ldflags = [ "-s" "-w" ];
|
|
|
|
|
|
|
|
sourceRoot = "source/c2FmZQ";
|
|
|
|
|
|
|
|
vendorHash = "sha256-Hz6P+ptn1i+8Ek3pp8j+iB8NN5Xks50jyZuT8Ullxbo=";
|
|
|
|
|
|
|
|
subPackages = [ "c2FmZQ-client" "c2FmZQ-server" ];
|
|
|
|
|
2023-10-01 22:09:53 +02:00
|
|
|
passthru.tests = { inherit (nixosTests) c2fmzq; };
|
|
|
|
|
2023-10-01 22:08:53 +02:00
|
|
|
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;
|
|
|
|
};
|
|
|
|
}
|