samply: refactor
This commit is contained in:
@@ -4,6 +4,8 @@
|
||||
fetchCrate,
|
||||
stdenv,
|
||||
darwin,
|
||||
versionCheckHook,
|
||||
nix-update-script,
|
||||
}:
|
||||
|
||||
rustPlatform.buildRustPackage rec {
|
||||
@@ -22,15 +24,21 @@ rustPlatform.buildRustPackage rec {
|
||||
darwin.apple_sdk.frameworks.CoreServices
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
nativeInstallCheckInputs = [ versionCheckHook ];
|
||||
versionCheckProgramArg = "--version";
|
||||
doInstallCheck = true;
|
||||
|
||||
passthru.updateScript = nix-update-script { };
|
||||
|
||||
meta = {
|
||||
description = "Command line profiler for macOS and Linux";
|
||||
mainProgram = "samply";
|
||||
homepage = "https://github.com/mstange/samply";
|
||||
changelog = "https://github.com/mstange/samply/releases/tag/samply-v${version}";
|
||||
license = with licenses; [
|
||||
license = with lib.licenses; [
|
||||
asl20
|
||||
mit
|
||||
];
|
||||
maintainers = with maintainers; [ figsoda ];
|
||||
maintainers = with lib.maintainers; [ figsoda ];
|
||||
mainProgram = "samply";
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user