qcal: init at 0.9.1

This commit is contained in:
Anton Mosich
2023-08-07 00:07:07 +02:00
parent d6c210d1c4
commit ad02936be1
2 changed files with 38 additions and 0 deletions
+36
View File
@@ -0,0 +1,36 @@
{ lib
, buildGoModule
, fetchFromSourcehut
}:
buildGoModule rec {
pname = "qcal";
version = "0.9.1";
src = fetchFromSourcehut {
owner = "~psic4t";
repo = "qcal";
rev = version;
hash = "sha256-Rj806cKCFxWB8X4EiKvyZ5/xACw+VVbo9hv8AJiB0S4=";
};
vendorHash = "sha256-ntpSj3Ze7n1sMIMojaESi4tQtx+mrA0aiv3+MQetjZI=";
# 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/config-sample.json "
'';
postInstall = ''
mkdir -p $out/share
cp config-sample.json $out/share/
'';
meta = with lib; {
description = "CLI calendar application for CalDAV servers written in Go";
homepage = "https://git.sr.ht/~psic4t/qcal";
license = licenses.gpl3;
mainProgram = "qcal";
maintainers = with maintainers; [ antonmosich ];
};
}
+2
View File
@@ -26948,6 +26948,8 @@ with pkgs;
radicale = radicale3;
qcal = callPackage ../tools/networking/qcal/default.nix { };
rake = callPackage ../development/tools/build-managers/rake { };
rakkess = callPackage ../development/tools/rakkess { };