2022-06-26 10:26:21 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, rustPlatform, Security }:
|
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "ferium";
|
2022-07-14 12:49:19 +00:00
|
|
|
version = "4.1.5";
|
2022-06-26 10:26:21 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "gorilla-devs";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2022-07-14 12:49:19 +00:00
|
|
|
sha256 = "sha256-NxrV8mi7xsr+x9oOp78DkHoPls0JLm5eol/8q9NwuTs=";
|
2022-06-26 10:26:21 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = lib.optionals stdenv.isDarwin [ Security ];
|
|
|
|
|
2022-07-14 12:49:19 +00:00
|
|
|
cargoSha256 = "sha256-hR2PKQqSvtSBOOhZKW2IsGGjuU4jCdLMeruAHxErQtU=";
|
2022-06-26 10:26:21 +00:00
|
|
|
|
2022-07-14 12:49:19 +00:00
|
|
|
# Disable the GUI file picker so that GTK/XDG dependencies aren't used
|
|
|
|
buildNoDefaultFeatures = true;
|
2022-06-26 10:26:21 +00:00
|
|
|
|
2022-07-14 12:49:19 +00:00
|
|
|
# Requires an internet connection
|
|
|
|
doCheck = false;
|
2022-06-26 10:26:21 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
2022-07-14 12:49:19 +00:00
|
|
|
description = "Fast and multi-source CLI program for managing Minecraft mods and modpacks from Modrinth, CurseForge, and GitHub Releases";
|
|
|
|
homepage = "https://github.com/gorilla-devs/ferium";
|
2022-06-26 10:26:21 +00:00
|
|
|
license = licenses.mpl20;
|
|
|
|
maintainers = [ maintainers.leo60228 ];
|
|
|
|
};
|
|
|
|
}
|