Add caldr

This commit is contained in:
Tibo De Peuter 2023-10-08 14:51:45 +02:00
parent 336f7a11d4
commit 813bc5b280
2 changed files with 57 additions and 0 deletions

26
caldr/flake.lock Normal file
View file

@ -0,0 +1,26 @@
{
"nodes": {
"nixpkgs": {
"locked": {
"lastModified": 1696604326,
"narHash": "sha256-YXUNI0kLEcI5g8lqGMb0nh67fY9f2YoJsILafh6zlMo=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "87828a0e03d1418e848d3dd3f3014a632e4a4f64",
"type": "github"
},
"original": {
"id": "nixpkgs",
"ref": "nixos-unstable",
"type": "indirect"
}
},
"root": {
"inputs": {
"nixpkgs": "nixpkgs"
}
}
},
"root": "root",
"version": 7
}

31
caldr/flake.nix Normal file
View file

@ -0,0 +1,31 @@
{
description = "A lightweight CLI / TUI calendar that supports CalDAV";
inputs.nixpkgs.url = "nixpkgs/nixos-unstable";
outputs = { self, nixpkgs }:
let
version = builtins.substring 0 8 self.lastModifiedDate;
forAllSystems = nixpkgs.lib.genAttrs supportedSystems;
supportedSystems = [ "x86_64-linux" "x86_64-darwin" "aarch64-linux" "aarch64-darwin" ];
nixpkgsFor = forAllSystems (system: import nixpkgs { inherit system; });
in
{
packages = forAllSystems (system:
let
pkgs = nixpkgsFor.${system};
in {
default = pkgs.buildGoModule {
pname = "caldr";
inherit version;
src = pkgs.fetchFromGitHub {
owner = "tdpeuter";
repo = "caldr";
rev = "9848ec5";
sha256 = "sha256-Mi+koFVMq1unjmR/NsfCU+0GEDs0NC8fR/yEP/yxHe4=";
};
vendorSha256 = "sha256-jPz3Xi2RDFVKcUmFJmmVniHID2peZBBy+NjEE6pW5kw=";
};
});
};
}