feat: Build go program with flake
This commit is contained in:
parent
ee5550ef1a
commit
30ead33c55
1 changed files with 11 additions and 1 deletions
12
flake.nix
12
flake.nix
|
|
@ -31,7 +31,17 @@
|
|||
|
||||
# Equivalent to inputs'.nixpkgs.legacyPackages.hello;
|
||||
# FIXME(TODO): Build the package
|
||||
# packages.default =
|
||||
packages.default = pkgs.buildGoModule {
|
||||
name = "actualbudget-report";
|
||||
src = pkgs.fetchFromGitea {
|
||||
domain = "git.wanderingcrow.net";
|
||||
owner = "TheWanderingCrow";
|
||||
repo = "actualbudget-report";
|
||||
rev = "main";
|
||||
hash = "sha256-Exl7dZcbuVSwZRoZtNqo6LVYASc5wUruGkRpxnw5RgE=";
|
||||
};
|
||||
vendorHash = "sha256-NHTKwUSIbNCUco88JbHOo3gt6S37ggee+LWNbHaRGEs=";
|
||||
};
|
||||
devShells.default = pkgs.mkShell {
|
||||
ENVIRONMENT = "dev";
|
||||
nativeBuildInputs = with pkgs; [
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue