Unverified Commit a1f11928 authored by Defelo's avatar Defelo
Browse files

samply: refactor

parent 60bde6ae
Loading
Loading
Loading
Loading
+12 −4
Original line number Diff line number Diff line
@@ -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";
  };
}