mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-11 23:44:13 +00:00
72590183f0
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
42 lines
833 B
Nix
42 lines
833 B
Nix
{ lib
|
|
, buildGoModule
|
|
, fetchFromGitHub
|
|
, gitUpdater
|
|
, testers
|
|
, mods
|
|
}:
|
|
|
|
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}" ];
|
|
|
|
passthru = {
|
|
updateScript = gitUpdater {
|
|
rev-prefix = "v";
|
|
ignoredVersions = ".(rc|beta).*";
|
|
};
|
|
|
|
tests.version = testers.testVersion {
|
|
package = mods;
|
|
};
|
|
};
|
|
|
|
meta = with lib; {
|
|
description = "AI on the command line";
|
|
homepage = "https://github.com/charmbracelet/mods";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ dit7ya ];
|
|
};
|
|
}
|