gomod2nix/templates/app/default.nix

22 lines
463 B
Nix
Raw Normal View History

{ pkgs ? (
let
inherit (builtins) fetchTree fromJSON readFile;
inherit ((fromJSON (readFile ./flake.lock)).nodes) nixpkgs gomod2nix;
in
import (fetchTree nixpkgs.locked) {
overlays = [
(import "${fetchTree gomod2nix.locked}/overlay.nix")
];
}
)
, buildGoApplication ? pkgs.buildGoApplication
}:
2022-05-30 11:09:22 +00:00
buildGoApplication {
2022-05-30 11:09:22 +00:00
pname = "myapp";
version = "0.1";
pwd = ./.;
2022-05-30 11:09:22 +00:00
src = ./.;
modules = ./gomod2nix.toml;
}