nix-config/pkgs/protonup-rs/default.nix

36 lines
905 B
Nix
Raw Normal View History

2024-01-26 20:20:06 +01:00
{
lib,
fetchFromGitHub,
rustPlatform,
}:
rustPlatform.buildRustPackage rec {
pname = "protonup-rs";
version = "v0.6.0";
src = fetchFromGitHub {
owner = "auyer";
repo = pname;
rev = version;
hash = "sha256-IE8QO9LaEllTYRRDA704SNWp4Ap2NQmoYMaKX4l9McY=";
};
cargoBuildFlags = "-p protonup-rs";
# tests somehow fail, but compiled result works
checkFlags = [
"--skip=github::tests::test_fetch_data_from_tag"
"--skip=github::tests::test_get_release"
"--skip=github::tests::test_list_releases"
];
cargoHash = "sha256-/8JhMDwBP3INP9+YlkTc+SwGnZypcj7OJingiyw1pcU=";
2024-01-26 20:20:06 +01:00
meta = with lib; {
description = "A Rust app to Install and Update GE-Proton for Steam, and Wine-GE for Lutris";
homepage = "https://github.com/auyer/Protonup-rs";
license = licenses.asl20;
maintainers = with maintainers; [GHOSCHT];
mainProgram = "protonup-rs";
};
}