Merge pull request #294409 from loco-choco/owmods-cli-update
owmods-cli: Add mono wrap and fix man pages install
This commit is contained in:
commit
8d82b50624
3 changed files with 28 additions and 13 deletions
|
@ -2941,6 +2941,12 @@
|
||||||
githubId = 37375448;
|
githubId = 37375448;
|
||||||
name = "Buildit";
|
name = "Buildit";
|
||||||
};
|
};
|
||||||
|
bwc9876 = {
|
||||||
|
email = "bwc9876@gmail.com";
|
||||||
|
github = "Bwc9876";
|
||||||
|
githubId = 25644444;
|
||||||
|
name = "Ben C";
|
||||||
|
};
|
||||||
bwlang = {
|
bwlang = {
|
||||||
email = "brad@langhorst.com";
|
email = "brad@langhorst.com";
|
||||||
github = "bwlang";
|
github = "bwlang";
|
||||||
|
@ -18403,6 +18409,11 @@
|
||||||
githubId = 950799;
|
githubId = 950799;
|
||||||
name = "Tomasz Czyż";
|
name = "Tomasz Czyż";
|
||||||
};
|
};
|
||||||
|
spoonbaker = {
|
||||||
|
github = "Spoonbaker";
|
||||||
|
githubId = 47164123;
|
||||||
|
name = "Spoonbaker";
|
||||||
|
};
|
||||||
sprock = {
|
sprock = {
|
||||||
email = "rmason@mun.ca";
|
email = "rmason@mun.ca";
|
||||||
github = "sprock";
|
github = "sprock";
|
||||||
|
|
|
@ -6,34 +6,40 @@
|
||||||
, pkg-config
|
, pkg-config
|
||||||
, installShellFiles
|
, installShellFiles
|
||||||
, zstd
|
, zstd
|
||||||
|
, libsoup_3
|
||||||
|
, makeWrapper
|
||||||
|
, mono
|
||||||
|
, wrapWithMono ? true
|
||||||
, openssl
|
, openssl
|
||||||
, Security
|
, darwin
|
||||||
}:
|
}:
|
||||||
|
|
||||||
rustPlatform.buildRustPackage rec {
|
rustPlatform.buildRustPackage rec {
|
||||||
pname = "owmods-cli";
|
pname = "owmods-cli";
|
||||||
version = "0.12.2";
|
version = "0.13.0";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "ow-mods";
|
owner = "ow-mods";
|
||||||
repo = "ow-mod-man";
|
repo = "ow-mod-man";
|
||||||
rev = "cli_v${version}";
|
rev = "cli_v${version}";
|
||||||
hash = "sha256-AfqpLL3cGZLKW5/BE6SaBe4S8GzYM2GKUZU8mFH5uX4=";
|
hash = "sha256-JCPuKGO0pbhQaNmZUcZ95EZbXubrjZnw0qJmKCGuAoQ=";
|
||||||
};
|
};
|
||||||
|
|
||||||
cargoHash = "sha256-PhdfpiUgeOB13ROgzPBYM+sBLGMP+RtV9j9ebo8PpJU=";
|
cargoHash = "sha256-dTEEpjonvFYFv16e0eS71B4OMiYueYSfcs8gmSYeHPc=";
|
||||||
|
|
||||||
nativeBuildInputs = [
|
nativeBuildInputs = [
|
||||||
pkg-config
|
pkg-config
|
||||||
installShellFiles
|
installShellFiles
|
||||||
];
|
] ++ lib.optional wrapWithMono makeWrapper;
|
||||||
|
|
||||||
buildInputs = [
|
buildInputs = [
|
||||||
zstd
|
zstd
|
||||||
|
libsoup_3
|
||||||
] ++ lib.optionals stdenv.isLinux [
|
] ++ lib.optionals stdenv.isLinux [
|
||||||
openssl
|
openssl
|
||||||
] ++ lib.optionals stdenv.isDarwin [
|
] ++ lib.optionals stdenv.isDarwin [
|
||||||
Security
|
darwin.apple_sdk.frameworks.Security
|
||||||
|
darwin.apple_sdk.frameworks.SystemConfiguration
|
||||||
];
|
];
|
||||||
|
|
||||||
env = {
|
env = {
|
||||||
|
@ -44,9 +50,11 @@ rustPlatform.buildRustPackage rec {
|
||||||
|
|
||||||
postInstall = ''
|
postInstall = ''
|
||||||
cargo xtask dist_cli
|
cargo xtask dist_cli
|
||||||
installManPage man/man*/*
|
installManPage dist/cli/man/*
|
||||||
installShellCompletion --cmd owmods \
|
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 {};
|
passthru.updateScript = nix-update-script {};
|
||||||
|
@ -58,6 +66,6 @@ rustPlatform.buildRustPackage rec {
|
||||||
changelog = "https://github.com/ow-mods/ow-mod-man/releases/tag/cli_v${version}";
|
changelog = "https://github.com/ow-mods/ow-mod-man/releases/tag/cli_v${version}";
|
||||||
mainProgram = "owmods";
|
mainProgram = "owmods";
|
||||||
license = licenses.gpl3Plus;
|
license = licenses.gpl3Plus;
|
||||||
maintainers = with maintainers; [ locochoco ];
|
maintainers = with maintainers; [ bwc9876 spoonbaker locochoco ];
|
||||||
};
|
};
|
||||||
}
|
}
|
|
@ -40264,10 +40264,6 @@ with pkgs;
|
||||||
jre = openjdk19; # TODO: remove override https://github.com/NixOS/nixpkgs/pull/89731
|
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 { };
|
r128gain = callPackage ../applications/audio/r128gain { };
|
||||||
|
|
||||||
resp-app = libsForQt5.callPackage ../applications/misc/resp-app { };
|
resp-app = libsForQt5.callPackage ../applications/misc/resp-app { };
|
||||||
|
|
Loading…
Reference in a new issue