nix: modernize

This commit is contained in:
raf 2025-01-08 11:08:07 +03:00
commit 0e6979f684
No known key found for this signature in database
GPG key ID: EED98D11B85A2819
5 changed files with 48 additions and 39 deletions

View file

@ -1,16 +1,12 @@
{
packagePath,
callPackage,
mkShellNoCC,
gopls,
go,
}: let
mainPkg = callPackage packagePath {};
in
mainPkg.overrideAttrs (oa: {
nativeBuildInputs =
(oa.nativeBuildInputs or [])
++ [
gopls
go
];
})
}:
mkShellNoCC {
name = "batmon";
packages = [
gopls
go
];
}