summary refs log tree commit diff
path: root/pkgs/development/web/newman/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/development/web/newman/default.nix')
-rw-r--r--pkgs/development/web/newman/default.nix27
1 files changed, 18 insertions, 9 deletions
diff --git a/pkgs/development/web/newman/default.nix b/pkgs/development/web/newman/default.nix
index 6aa2413677c5c..b36b61d0e94d5 100644
--- a/pkgs/development/web/newman/default.nix
+++ b/pkgs/development/web/newman/default.nix
@@ -1,18 +1,27 @@
-{ pkgs, nodejs, stdenv, lib, ... }:
+{ lib
+, buildNpmPackage
+, fetchFromGitHub
+}:
 
-let
+buildNpmPackage rec {
+  pname = "newman";
+  version = "5.3.2";
 
-  packageName = with lib; concatStrings (map (entry: (concatStrings (mapAttrsToList (key: value: "${key}-${value}") entry))) (importJSON ./package.json));
-
-  nodePackages = import ./node-composition.nix {
-    inherit pkgs nodejs;
-    inherit (stdenv.hostPlatform) system;
+  src = fetchFromGitHub {
+    owner = "postmanlabs";
+    repo = "newman";
+    rev = "refs/tags/v${version}";
+    hash = "sha256-j5YS9Zbk9b3K4+0sGzqtCgEsR+S5nGPf/rebeGzsscA=";
   };
-in
-nodePackages.newman.override {
+
+  npmDepsHash = "sha256-FwVmesHtzTZKsTCIfZiRPb1zf7q5LqABAZOh8gXB9qw=";
+
+  dontNpmBuild = true;
+
   meta = with lib; {
     homepage = "https://www.getpostman.com";
     description = "A command-line collection runner for Postman";
+    changelog = "https://github.com/postmanlabs/newman/releases/tag/v${version}";
     maintainers = with maintainers; [ freezeboy ];
     license = licenses.asl20;
   };