Skip to content

Commit

Permalink
Merge pull request #294409 from loco-choco/owmods-cli-update
Browse files Browse the repository at this point in the history
owmods-cli: Add mono wrap and fix man pages install
  • Loading branch information
wegank authored Mar 20, 2024
2 parents bc5777f + e91b378 commit 8d82b50
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 13 deletions.
11 changes: 11 additions & 0 deletions maintainers/maintainer-list.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2941,6 +2941,12 @@
githubId = 37375448;
name = "Buildit";
};
bwc9876 = {
email = "[email protected]";
github = "Bwc9876";
githubId = 25644444;
name = "Ben C";
};
bwlang = {
email = "[email protected]";
github = "bwlang";
Expand Down Expand Up @@ -18403,6 +18409,11 @@
githubId = 950799;
name = "Tomasz Czyż";
};
spoonbaker = {
github = "Spoonbaker";
githubId = 47164123;
name = "Spoonbaker";
};
sprock = {
email = "[email protected]";
github = "sprock";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,34 +6,40 @@
, pkg-config
, installShellFiles
, zstd
, libsoup_3
, makeWrapper
, mono
, wrapWithMono ? true
, openssl
, Security
, darwin
}:

rustPlatform.buildRustPackage rec {
pname = "owmods-cli";
version = "0.12.2";
version = "0.13.0";

src = fetchFromGitHub {
owner = "ow-mods";
repo = "ow-mod-man";
rev = "cli_v${version}";
hash = "sha256-AfqpLL3cGZLKW5/BE6SaBe4S8GzYM2GKUZU8mFH5uX4=";
hash = "sha256-JCPuKGO0pbhQaNmZUcZ95EZbXubrjZnw0qJmKCGuAoQ=";
};

cargoHash = "sha256-PhdfpiUgeOB13ROgzPBYM+sBLGMP+RtV9j9ebo8PpJU=";
cargoHash = "sha256-dTEEpjonvFYFv16e0eS71B4OMiYueYSfcs8gmSYeHPc=";

nativeBuildInputs = [
pkg-config
installShellFiles
];
] ++ lib.optional wrapWithMono makeWrapper;

buildInputs = [
zstd
libsoup_3
] ++ lib.optionals stdenv.isLinux [
openssl
] ++ lib.optionals stdenv.isDarwin [
Security
darwin.apple_sdk.frameworks.Security
darwin.apple_sdk.frameworks.SystemConfiguration
];

env = {
Expand All @@ -44,9 +50,11 @@ rustPlatform.buildRustPackage rec {

postInstall = ''
cargo xtask dist_cli
installManPage man/man*/*
installManPage dist/cli/man/*
installShellCompletion --cmd owmods \
dist/cli/completions/owmods.{bash,fish,zsh}
dist/cli/completions/owmods.{bash,fish,zsh}
'' + lib.optionalString wrapWithMono ''
wrapProgram $out/bin/${meta.mainProgram} --prefix PATH : '${mono}/bin'
'';

passthru.updateScript = nix-update-script {};
Expand All @@ -58,6 +66,6 @@ rustPlatform.buildRustPackage rec {
changelog = "https://github.com/ow-mods/ow-mod-man/releases/tag/cli_v${version}";
mainProgram = "owmods";
license = licenses.gpl3Plus;
maintainers = with maintainers; [ locochoco ];
maintainers = with maintainers; [ bwc9876 spoonbaker locochoco ];
};
}
4 changes: 0 additions & 4 deletions pkgs/top-level/all-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -40264,10 +40264,6 @@ with pkgs;
jre = openjdk19; # TODO: remove override https://github.com/NixOS/nixpkgs/pull/89731
});

owmods-cli = callPackage ../applications/misc/owmods-cli {
inherit (darwin.apple_sdk.frameworks) Security;
};

r128gain = callPackage ../applications/audio/r128gain { };

resp-app = libsForQt5.callPackage ../applications/misc/resp-app { };
Expand Down

0 comments on commit 8d82b50

Please sign in to comment.