mirror of
https://github.com/tweag/gomod2nix.git
synced 2024-11-05 01:59:08 +00:00
20 lines
527 B
Nix
20 lines
527 B
Nix
{
|
|
description = "Convert go.mod/go.sum to Nix packages";
|
|
|
|
inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
|
|
|
|
inputs.utils.url = "github:numtide/flake-utils";
|
|
|
|
outputs = { self, nixpkgs, utils }: utils.lib.eachDefaultSystem (system: let
|
|
pkgs = import nixpkgs { inherit system; };
|
|
in {
|
|
overlay = final: prev: {
|
|
buildGoApplication = final.callPackage ./builder { };
|
|
gomod2nix = final.callPackage ./default.nix { };
|
|
};
|
|
|
|
defaultPackage = pkgs.callPackage ./default.nix { };
|
|
|
|
});
|
|
|
|
}
|