diff --git a/maintainers/maintainer-list.nix b/maintainers/maintainer-list.nix index bf83d959b9c3..5b1c63beb1c6 100644 --- a/maintainers/maintainer-list.nix +++ b/maintainers/maintainer-list.nix @@ -1203,6 +1203,12 @@ githubId = 20933385; name = "Anton Latukha"; }; + antonmosich = { + email = "anton@mosich.at"; + github = "antonmosich"; + githubId = 27223336; + name = "Anton Mosich"; + }; antono = { email = "self@antono.info"; github = "antono"; diff --git a/pkgs/tools/networking/qcal/default.nix b/pkgs/tools/networking/qcal/default.nix new file mode 100644 index 000000000000..efb06fd1be6d --- /dev/null +++ b/pkgs/tools/networking/qcal/default.nix @@ -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 ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 22967181b3ce..61ea7c10be3b 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -27055,6 +27055,8 @@ with pkgs; radicale = radicale3; + qcal = callPackage ../tools/networking/qcal/default.nix { }; + rake = callPackage ../development/tools/build-managers/rake { }; rakkess = callPackage ../development/tools/rakkess { };