Unverified Commit fd106e6a authored by figsoda's avatar figsoda Committed by GitHub
Browse files

Merge pull request #231832 from dit7ya/mods

mods: init at 0.1.1
parents d39fb92e 893c5215
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -19,13 +19,13 @@
, stdenv
, wayland

, mods ? [ ]
, mods-dat ? null
, versionsJson ? ./versions.json
, username ? ""
, token ? "" # get/reset token at https://factorio.com/profile
, experimental ? false # true means to always use the latest branch
}:
, ...
} @ args:

assert releaseType == "alpha"
  || releaseType == "headless"
@@ -35,6 +35,8 @@ let

  inherit (lib) importJSON;

  mods = args.mods or [ ];

  helpMsg = ''

    ===FETCH FAILED===
+27 −0
Original line number Diff line number Diff line
{ lib
, buildGoModule
, fetchFromGitHub
}:

buildGoModule rec {
  pname = "mods";
  version = "0.1.1";

  src = fetchFromGitHub {
    owner = "charmbracelet";
    repo = "mods";
    rev = "v${version}";
    hash = "sha256-r7j7iMkfkFsohguu2vkhyxUbaMwJQURfUJrnC6yUCFI=";
  };

  vendorHash = "sha256-+0yGFCGd/9bIBjXYp8UPGqKum2di5O1ALMyDSxcVujg=";

  ldflags = [ "-s" "-w" "-X=main.version=${version}" ];

  meta = with lib; {
    description = "AI on the command line";
    homepage = "https://github.com/charmbracelet/mods";
    license = licenses.mit;
    maintainers = with maintainers; [ dit7ya ];
  };
}
+2 −0
Original line number Diff line number Diff line
@@ -882,6 +882,8 @@ with pkgs;
  mod = callPackage ../development/tools/mod { };
  mods = callPackage ../tools/misc/mods { };
  mongosh = callPackage ../development/tools/mongosh { };
  mysql-shell = callPackage ../development/tools/mysql-shell {