58 lines
1.5 KiB
Nix
58 lines
1.5 KiB
Nix
{
|
|
description = "actualbudget-report";
|
|
|
|
inputs = {
|
|
flake-parts.url = "github:hercules-ci/flake-parts";
|
|
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
|
|
};
|
|
|
|
outputs =
|
|
inputs@{
|
|
self,
|
|
flake-parts,
|
|
...
|
|
}:
|
|
flake-parts.lib.mkFlake
|
|
{
|
|
inherit inputs;
|
|
}
|
|
{
|
|
imports = [ inputs.flake-parts.flakeModules.easyOverlay ];
|
|
systems = [
|
|
"x86_64-linux"
|
|
"aarch64-linux"
|
|
"aarch64-darwin"
|
|
"x86_64-darwin"
|
|
];
|
|
flake.nixosModules.default = ./modules/actualbudget-report;
|
|
perSystem =
|
|
{
|
|
config,
|
|
self',
|
|
inputs',
|
|
pkgs,
|
|
system,
|
|
...
|
|
}:
|
|
{
|
|
overlayAttrs = { inherit (config.packages) actualbudget-report; };
|
|
packages.actualbudget-report = pkgs.buildGoModule {
|
|
name = "actualbudget-report";
|
|
src = pkgs.fetchFromGitea {
|
|
domain = "git.wanderingcrow.net";
|
|
owner = "TheWanderingCrow";
|
|
repo = "actualbudget-report";
|
|
rev = "v2.0";
|
|
hash = "sha256-H+pA9dFsP5QQ3W32NEU1TWYiOiti53jnzN3Bnq+QJ5Q=";
|
|
};
|
|
vendorHash = "sha256-NHTKwUSIbNCUco88JbHOo3gt6S37ggee+LWNbHaRGEs=";
|
|
};
|
|
devShells.default = pkgs.mkShell {
|
|
ENVIRONMENT = "dev";
|
|
nativeBuildInputs = with pkgs; [
|
|
devenv
|
|
];
|
|
};
|
|
};
|
|
};
|
|
}
|