Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
40 lines
921 B
Nix
40 lines
921 B
Nix
{
|
|
lib,
|
|
buildGoModule,
|
|
fetchFromSourcehut,
|
|
}:
|
|
|
|
buildGoModule rec {
|
|
pname = "qcard";
|
|
version = "0.7.1";
|
|
|
|
src = fetchFromSourcehut {
|
|
owner = "~psic4t";
|
|
repo = "qcard";
|
|
rev = version;
|
|
hash = "sha256-OwmJSeAOZTX7jMhoLHSIJa0jR8zCadISQF/PqFqltRY=";
|
|
};
|
|
|
|
vendorHash = null;
|
|
|
|
# Replace "config-sample.json" in error message with the absolute path
|
|
# to that config file in the nix store
|
|
preBuild = ''
|
|
substituteInPlace helpers.go \
|
|
--replace " config-sample.json " " $out/share/qcard/config-sample.json "
|
|
'';
|
|
|
|
postInstall = ''
|
|
mkdir -p $out/share/qcard
|
|
cp config-sample.json $out/share/qcard/
|
|
'';
|
|
|
|
meta = {
|
|
description = "CLI addressbook application for CardDAV servers written in Go";
|
|
homepage = "https://git.sr.ht/~psic4t/qcard";
|
|
license = lib.licenses.gpl3Plus;
|
|
mainProgram = "qcard";
|
|
maintainers = with lib.maintainers; [ antonmosich ];
|
|
};
|
|
}
|