Add a basic 'hello-world' buildable with Nix

This commit is contained in:
Eli Ribble 2025-11-03 12:22:06 +00:00
parent f3205e2df6
commit 63ff66b3d9
No known key found for this signature in database
6 changed files with 115 additions and 0 deletions

30
flake.nix Normal file
View file

@ -0,0 +1,30 @@
{
description = "Nidus sync";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-25.05";
flake-utils.url = "github:numtide/flake-utils";
};
outputs = { self, nixpkgs, flake-utils }:
flake-utils.lib.eachDefaultSystem (system:
let
pkgs = nixpkgs.legacyPackages.${system};
package = import ./default.nix { inherit pkgs; };
in
{
packages.default = package;
packages.nidus-sync = package;
# Development shell configuration
devShells.default = pkgs.mkShell {
buildInputs = [
pkgs.go
pkgs.goose
pkgs.gotools
pkgs.lefthook
];
};
}
);
}