nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 buildNpmPackage,
3 fetchFromGitHub,
4 lib,
5}:
6
7buildNpmPackage rec {
8 pname = "surge-cli";
9 version = "0.23.1";
10
11 src = fetchFromGitHub {
12 owner = "sintaxi";
13 repo = "surge";
14 rev = "v${version}";
15 hash = "sha256-EpYww/YCQhPFmnOJ1zbigI2qyUrKN2TxKHEju/0Si3M=";
16 };
17
18 npmDepsHash = "sha256-F1C/sfOT/Tf+h28g1umP6czLFIsxDkbvT14ZfWLTiCE=";
19
20 dontNpmBuild = true;
21
22 meta = {
23 mainProgram = "surge";
24 description = "CLI for the surge.sh CDN";
25 homepage = "https://surge.sh";
26 license = lib.licenses.mit;
27 maintainers = with lib.maintainers; [ MoritzBoehme ];
28 };
29}