Add a basic 'hello-world' buildable with Nix
This commit is contained in:
parent
f3205e2df6
commit
63ff66b3d9
6 changed files with 115 additions and 0 deletions
30
flake.nix
Normal file
30
flake.nix
Normal 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
|
||||
];
|
||||
};
|
||||
}
|
||||
);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue