This commit is contained in:
Alan Daniels 2025-02-11 16:23:32 +11:00
commit c5a07cc35b
6 changed files with 234 additions and 0 deletions

23
default.nix Normal file
View file

@ -0,0 +1,23 @@
{
source,
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 = "larvel-ls";
version = "0.1";
pwd = ./.;
src = source;
modules = ./gomod2nix.toml;
}