Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

nodePackages.surge: use buildNpmPackage #252460

Merged
merged 1 commit into from
Sep 8, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions pkgs/development/node-packages/aliases.nix
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ mapAliases {
s3http = throw "s3http was removed because it was abandoned upstream"; # added 2023-08-18
ssb-server = throw "ssb-server was removed because it was broken"; # added 2023-08-21
stf = throw "stf was removed because it was broken"; # added 2023-08-21
surge = pkgs.surge-cli; # Added 2023-09-08
thelounge = pkgs.thelounge; # Added 2023-05-22
triton = pkgs.triton; # Added 2023-05-06
typescript = pkgs.typescript; # Added 2023-06-21
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 @@ -257,7 +257,6 @@
, "sql-formatter"
, "stackdriver-statsd-backend"
, "stylelint"
, "surge"
, "svelte-check"
, "svelte-language-server"
, "svgo"
Expand Down
137 changes: 0 additions & 137 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.

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

buildNpmPackage rec {
pname = "surge-cli";
version = "0.23.1";

src = fetchFromGitHub {
owner = "sintaxi";
repo = "surge";
rev = "v${version}";
hash = "sha256-EpYww/YCQhPFmnOJ1zbigI2qyUrKN2TxKHEju/0Si3M=";
};

npmDepsHash = "sha256-F1C/sfOT/Tf+h28g1umP6czLFIsxDkbvT14ZfWLTiCE=";

dontNpmBuild = true;

meta = with lib; {
mainProgram = "surge";
description = "CLI for the surge.sh CDN";
homepage = "https://surge.sh";
license = licenses.mit;
maintainers = with maintainers; [ MoritzBoehme ];
};
}
2 changes: 2 additions & 0 deletions pkgs/top-level/all-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -20279,6 +20279,8 @@ with pkgs;

supabase-cli = callPackage ../development/tools/supabase-cli { };

surge-cli = callPackage ../development/tools/surge-cli { };

svlint = callPackage ../development/tools/analysis/svlint { };

swarm = callPackage ../development/tools/analysis/swarm { };
Expand Down