How to install golang package with custom tags in nix-shell?

Viewed 364

I want to use go-migrate in my development environment, so I fill my shell.nix with

{ pkgs ? import <nixpkgs> {} }:

pkgs.mkShell {
  buildInputs = [
    pkgs.go-migrate
  ];
}

But it will install go-migrate without any database drivers, so I can't use it. As I see in official installation instructions I should provide tags with needed database, but how to do it with nix?

0 Answers
Related