23 lines
498 B
Nix
23 lines
498 B
Nix
{ 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
|
|
}:
|
|
|
|
buildGoApplication {
|
|
pname = "server";
|
|
version = "0.1";
|
|
pwd = ./.;
|
|
src = ./.;
|
|
modules = ./gomod2nix.toml;
|
|
subPackages = [ "cmd/server" ];
|
|
}
|