create a default.nix file in this directory
{
buildGoModule ? null,
lib
}:
buildGoModule rec {
pname = "coredns";
version = "0.0.1";
src = ./.;
vendorHash = lib.fakeHash;
meta = with lib; {
description = "Coredns with plugins for nixos configurations";
homepage = "https://github.com/bia3/customCoredns";
license = licenses.mit;
maintainers = with maintainers; [ bia3 ];
};
}and ru the following
nix-build -E 'with import <nixpkgs> { }; callPackage ./default.nix { }'