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 22, 2023
1 parent a1a55a2 commit 775a430
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 @@ -60,6 +60,7 @@ mapAliases {
gtop = pkgs.gtop; # added 2023-07-31
inherit (pkgs) htmlhint; # added 2023-08-19
hueadm = pkgs.hueadm; # added 2023-07-31
inherit (pkgs) hyperpotamus; # added 2023-08-19
immich = pkgs.immich-cli; # added 2023-08-19
indium = throw "indium was removed because it was broken"; # added 2023-08-19
inherit (pkgs) javascript-typescript-langserver; # added 2023-08-19
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 @@ -161,7 +161,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 @@ -1804,6 +1804,8 @@ with pkgs;

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

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

immich-cli = callPackage ../tools/misc/immich-cli { };

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

0 comments on commit 775a430

Please sign in to comment.