17 rustPlatform.buildRustPackage rec {
21 src = fetchFromGitHub {
24 rev = "cli_v${version}";
25 hash = "sha256-ONvmTBF9y3NMQx1KgNhJt+0nV57xc9cLalpfDqrTSq0=";
28 cargoHash = "sha256-I4OX27LHpT5YYW6yEhX+sCuA8m0KZd/qud4xdEUzkyA=";
33 ] ++ lib.optional wrapWithMono makeWrapper;
38 ] ++ lib.optionals stdenv.isLinux [
40 ] ++ lib.optionals stdenv.isDarwin [
41 darwin.apple_sdk.frameworks.Security
42 darwin.apple_sdk.frameworks.SystemConfiguration
46 ZSTD_SYS_USE_PKG_CONFIG = true;
49 buildAndTestSubdir = "owmods_cli";
53 installManPage dist/cli/man/*
54 installShellCompletion --cmd owmods \
55 dist/cli/completions/owmods.{bash,fish,zsh}
56 '' + lib.optionalString wrapWithMono ''
57 wrapProgram $out/bin/${meta.mainProgram} --prefix PATH : '${mono}/bin'
60 passthru.updateScript = nix-update-script {};
63 description = "CLI version of the mod manager for Outer Wilds Mod Loader";
64 homepage = "https://github.com/ow-mods/ow-mod-man/tree/main/owmods_cli";
65 downloadPage = "https://github.com/ow-mods/ow-mod-man/releases/tag/cli_v${version}";
66 changelog = "https://github.com/ow-mods/ow-mod-man/releases/tag/cli_v${version}";
67 mainProgram = "owmods";
68 license = licenses.gpl3Plus;
69 maintainers = with maintainers; [ bwc9876 spoonbaker locochoco ];