From 813bc5b2805ee0c5bfc6a196393c9b4bca245c51 Mon Sep 17 00:00:00 2001 From: tdpeuter Date: Sun, 8 Oct 2023 14:51:45 +0200 Subject: [PATCH] Add caldr --- caldr/flake.lock | 26 ++++++++++++++++++++++++++ caldr/flake.nix | 31 +++++++++++++++++++++++++++++++ 2 files changed, 57 insertions(+) create mode 100644 caldr/flake.lock create mode 100644 caldr/flake.nix diff --git a/caldr/flake.lock b/caldr/flake.lock new file mode 100644 index 0000000..c744f82 --- /dev/null +++ b/caldr/flake.lock @@ -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 +} diff --git a/caldr/flake.nix b/caldr/flake.nix new file mode 100644 index 0000000..12e223f --- /dev/null +++ b/caldr/flake.nix @@ -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="; + }; + }); + }; + }