nixpkgs/pkgs/development/web/newman/default.nix
stuebinm ff1a94e523 treewide: add meta.mainProgram to packages with a single binary
The nixpkgs-unstable channel's programs.sqlite was used to identify
packages producing exactly one binary, and these automatically added
to their package definitions wherever possible.
2024-03-19 03:14:51 +01:00

30 lines
717 B
Nix

{ lib
, buildNpmPackage
, fetchFromGitHub
}:
buildNpmPackage rec {
pname = "newman";
version = "6.1.1";
src = fetchFromGitHub {
owner = "postmanlabs";
repo = "newman";
rev = "refs/tags/v${version}";
hash = "sha256-CHlch4FoaW42oWxlaAEuNBLTM1hSwLK+nvBfE17GNHU=";
};
npmDepsHash = "sha256-ez6FXuu1gMBfJvgmOKs+zoUVMWwBPgJH33BbbLNL0Vk=";
dontNpmBuild = true;
meta = with lib; {
homepage = "https://www.getpostman.com";
description = "A command-line collection runner for Postman";
mainProgram = "newman";
changelog = "https://github.com/postmanlabs/newman/releases/tag/v${version}";
maintainers = with maintainers; [ freezeboy ];
license = licenses.asl20;
};
}