{ description = "actualbudget-report"; inputs = { flake-parts.url = "github:hercules-ci/flake-parts"; nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable"; }; outputs = inputs@{ flake-parts, ... }: flake-parts.lib.mkFlake { inherit inputs; } { systems = [ "x86_64-linux" "aarch64-linux" "aarch64-darwin" "x86_64-darwin" ]; perSystem = { config, self', inputs', pkgs, system, ... }: { # Per-system attributes can be defined here. The self' and inputs' # module parameters provide easy access to attributes of the same # system. # Equivalent to inputs'.nixpkgs.legacyPackages.hello; packages.default = pkgs.buildGoModule { name = "actualbudget-report"; src = pkgs.fetchFromGitea { domain = "git.wanderingcrow.net"; owner = "TheWanderingCrow"; repo = "actualbudget-report"; rev = "v0.1"; hash = "sha256-Jf/cnYdAYTHOBSY0DmqMFqErxtBJmaUPBriBqALpc2Q="; }; vendorHash = "sha256-NHTKwUSIbNCUco88JbHOo3gt6S37ggee+LWNbHaRGEs="; }; devShells.default = pkgs.mkShell { ENVIRONMENT = "dev"; nativeBuildInputs = with pkgs; [ go mailpit ]; }; }; }; }