From 09af83576a877eda40512bfba30b47a1b13061fb Mon Sep 17 00:00:00 2001 From: Rutger Broekhoff Date: Wed, 13 Nov 2024 20:47:40 +0100 Subject: Initial (public) commit --- flake.nix | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 flake.nix (limited to 'flake.nix') diff --git a/flake.nix b/flake.nix new file mode 100644 index 0000000..f8ca910 --- /dev/null +++ b/flake.nix @@ -0,0 +1,37 @@ +{ + inputs = { + nixpkgs.url = "https://flakehub.com/f/NixOS/nixpkgs/0.2311.*.tar.gz"; + flake-utils.url = "https://flakehub.com/f/numtide/flake-utils/0.1.88.tar.gz"; + }; + + outputs = { self, nixpkgs, flake-utils, ... }@inputs: + { + nixosModules = rec { + icalproxy = import ./module self; + default = icalproxy; + }; + } // flake-utils.lib.eachDefaultSystem + (system: + let + pkgs = import nixpkgs { + inherit system; + overlays = [ ]; + }; + + icalproxy = pkgs.buildGoModule { + name = "icalproxy"; + src = ./.; + vendorHash = "sha256-l/PQPEZC99umlSr6PBn/dXn2mZN4qf8YMBE8ENOm97I="; + }; + in + { + packages.icalproxy = icalproxy; + packages.default = self.packages.${system}.icalproxy; + + devShells.default = pkgs.mkShell { + inputsFrom = [ icalproxy ]; + }; + + formatter = pkgs.nixpkgs-fmt; + }); +} -- cgit v1.2.3