Files
nutdns/flake.nix

36 lines
749 B
Nix

{
description = "System";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
flake-utils = {
url = "github:numtide/flake-utils";
};
};
outputs =
{ nixpkgs, flake-utils, ... }:
flake-utils.lib.eachDefaultSystem (
system:
let
pkgs = import nixpkgs { inherit system; };
in
{
devShells = {
default = pkgs.mkShell {
buildInputs = with pkgs; [
go
gopls
codex
];
};
};
packages.default = pkgs.buildGoModule {
name = "nutdns";
src = ./.;
vendorHash = "sha256-4V3cIgEN8WkHHrPz9SRshoiu0C+NHR0Xov1FZ06Q9XI=";
};
}
);
}