Use the correct project name (web-terminal-experiment) in both flake.nix and go.mod.
36 lines
766 B
Nix
36 lines
766 B
Nix
{
|
|
description = "Web Terminal Experiment";
|
|
|
|
inputs = {
|
|
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
|
|
flake-utils.url = "github:numtide/flake-utils";
|
|
};
|
|
|
|
outputs = {
|
|
nixpkgs,
|
|
flake-utils,
|
|
...
|
|
}:
|
|
flake-utils.lib.eachDefaultSystem (
|
|
system: let
|
|
pkgs = nixpkgs.legacyPackages.${system};
|
|
|
|
nativeBuildInputs = with pkgs; [
|
|
go
|
|
gopls
|
|
];
|
|
buildInputs = with pkgs; [];
|
|
in {
|
|
devShells.default = pkgs.mkShell {inherit nativeBuildInputs buildInputs;};
|
|
|
|
packages.default = pkgs.buildGoModule rec {
|
|
name = "web-terminal-experiment-server";
|
|
src = ./.;
|
|
|
|
inherit buildInputs;
|
|
|
|
vendorHash = null;
|
|
};
|
|
}
|
|
);
|
|
}
|