18 rustPlatform.buildRustPackage rec {
22 src = fetchFromGitHub {
25 rev = "cli_v${version}";
26 hash = "sha256-NIg8heytWUshpoUbaH+RFIvwPBQGXL6yaGKvUuGnxg8=";
29 useFetchCargoVendor = true;
30 cargoHash = "sha256-kLuiNfrxc3Z8UeDQ2Mb6N78TST6c2f4N7mt4X0zv1Zk=";
35 ] ++ lib.optional wrapWithMono makeWrapper;
42 ++ lib.optionals stdenv.hostPlatform.isLinux [
45 ++ lib.optionals stdenv.hostPlatform.isDarwin [
46 darwin.apple_sdk.frameworks.Security
47 darwin.apple_sdk.frameworks.SystemConfiguration
51 ZSTD_SYS_USE_PKG_CONFIG = true;
54 buildAndTestSubdir = "owmods_cli";
59 installManPage dist/cli/man/*
60 installShellCompletion --cmd owmods \
61 dist/cli/completions/owmods.{bash,fish,zsh}
63 + lib.optionalString wrapWithMono ''
64 wrapProgram $out/bin/${meta.mainProgram} --prefix PATH : '${mono}/bin'
67 passthru.updateScript = nix-update-script { };
70 description = "CLI version of the mod manager for Outer Wilds Mod Loader";
71 homepage = "https://github.com/ow-mods/ow-mod-man/tree/main/owmods_cli";
72 downloadPage = "https://github.com/ow-mods/ow-mod-man/releases/tag/cli_v${version}";
73 changelog = "https://github.com/ow-mods/ow-mod-man/releases/tag/cli_v${version}";
74 mainProgram = "owmods";
75 license = licenses.gpl3Plus;
76 maintainers = with maintainers; [