Skip to content

Commit

Permalink
hyperpotamus: use buildNpmPackage
Browse files Browse the repository at this point in the history
  • Loading branch information
dotlambda committed Aug 20, 2023
1 parent 032895d commit a070bb2
Show file tree
Hide file tree
Showing 5 changed files with 31 additions and 233 deletions.
1 change: 1 addition & 0 deletions pkgs/development/node-packages/aliases.nix
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ mapAliases {
flood = pkgs.flood; # Added 2023-07-25
gtop = pkgs.gtop; # added 2023-07-31
hueadm = pkgs.hueadm; # added 2023-07-31
inherit (pkgs) hyperpotamus; # added 2023-08-19
indium = throw "indium was removed because it was broken"; # added 2023-08-19
karma = pkgs.karma-runner; # added 2023-07-29
manta = pkgs.node-manta; # Added 2023-05-06
Expand Down
1 change: 0 additions & 1 deletion pkgs/development/node-packages/node-packages.json
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,6 @@
, "hsd"
, "hs-airdrop"
, "hs-client"
, "hyperpotamus"
, "ijavascript"
, "inliner"
, "imapnotify"
Expand Down
232 changes: 0 additions & 232 deletions pkgs/development/node-packages/node-packages.nix

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

28 changes: 28 additions & 0 deletions pkgs/tools/misc/hyperpotamus/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
{ lib
, buildNpmPackage
, fetchFromGitHub
}:

buildNpmPackage rec {
pname = "hyperpotamus";
version = "0.39.0";

src = fetchFromGitHub {
owner = "pmarkert";
repo = "hyperpotamus";
rev = "v${version}";
hash = "sha256-dExkvObz+PNjqAZnigZHs/DCSHq31jDg9pgFmmtPmWk=";
};

npmDepsHash = "sha256-cH0VEhs4q13gnFKQmmu8fXjueBu/u7xtySE6HTm+bik=";

dontNpmBuild = true;

meta = {
description = "YAML based HTTP script processing engine";
homepage = "https://github.com/pmarkert/hyperpotamus";
license = lib.licenses.mit;
mainProgram = "hyperpotamus";
maintainers = with lib.maintainers; [ onny ];
};
}
2 changes: 2 additions & 0 deletions pkgs/top-level/all-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -1798,6 +1798,8 @@ with pkgs;

httm = darwin.apple_sdk_11_0.callPackage ../tools/filesystems/httm { };

hyperpotamus = callPackage ../tools/misc/hyperpotamus { };

inherit (callPackage ../tools/networking/ivpn/default.nix {}) ivpn ivpn-service;

jobber = callPackage ../tools/system/jobber { };
Expand Down

0 comments on commit a070bb2

Please sign in to comment.