aboutsummaryrefslogtreecommitdiff
path: root/nixpkgs/pkgs/development/web
diff options
context:
space:
mode:
Diffstat (limited to 'nixpkgs/pkgs/development/web')
-rw-r--r--nixpkgs/pkgs/development/web/deno/default.nix139
-rw-r--r--nixpkgs/pkgs/development/web/flyctl/default.nix11
-rw-r--r--nixpkgs/pkgs/development/web/minify/default.nix4
-rw-r--r--nixpkgs/pkgs/development/web/nodejs/v12.nix4
-rw-r--r--nixpkgs/pkgs/development/web/nodejs/v14.nix4
-rw-r--r--nixpkgs/pkgs/development/web/postman/default.nix4
-rw-r--r--nixpkgs/pkgs/development/web/twitter-bootstrap/default.nix4
7 files changed, 154 insertions, 16 deletions
diff --git a/nixpkgs/pkgs/development/web/deno/default.nix b/nixpkgs/pkgs/development/web/deno/default.nix
new file mode 100644
index 00000000000..629c1eeb41a
--- /dev/null
+++ b/nixpkgs/pkgs/development/web/deno/default.nix
@@ -0,0 +1,139 @@
+{ stdenv
+, fetchurl
+, fetchFromGitHub
+, rust
+, rustPlatform
+, python27
+, installShellFiles
+, Security
+, CoreServices
+}:
+let
+ pname = "deno";
+ version = "1.0.0";
+
+ denoSrc = fetchFromGitHub {
+ owner = "denoland";
+ repo = pname;
+ rev = "v${version}";
+ sha256 = "0k8mqy1hf9hkp60jhd0x4z814y36g51083b3r7prc69ih2523hd1";
+
+ fetchSubmodules = true;
+ };
+ cargoSha256 = "1fjl07qqvl1f20qazcqxh32xmdfh80jni7i3jzvz6vgsfw1g5cmk";
+
+ rustyV8Lib = fetchlib "rusty_v8" "0.4.2" {
+ x86_64-linux = "1ac6kv3kv087df6kdgfd7kbh24187cg9z7xhbz6rw6jjv4ci2zbi";
+ aarch64-linux = "06iyjx4p4vp2i81wdy0vxai2k18pki972ff7k0scjqrgmnav1p8k";
+ x86_64-darwin = "02hwbpsqdzb9mvfndgykvv44f1jig3w3a26l0h26hs5shsrp47jv";
+ };
+
+ arch = rust.toRustTarget stdenv.hostPlatform;
+ fetchlib = name: version: sha256: fetchurl {
+ url = "https://github.com/denoland/${name}/releases/download/v${version}/librusty_v8_release_${arch}.a";
+ sha256 = sha256."${stdenv.hostPlatform.system}";
+ meta = { inherit version; };
+ };
+in
+rustPlatform.buildRustPackage rec {
+ inherit pname version cargoSha256;
+
+ src = denoSrc;
+
+ nativeBuildInputs = [
+ # chromium/V8 requires python 2.7, we're not building V8 from source
+ # but as a result rusty_v8's download script also uses python 2.7
+ # tracking issue: https://bugs.chromium.org/p/chromium/issues/detail?id=942720
+ python27
+
+ # Install completions post-install
+ installShellFiles
+ ];
+
+ buildInputs = with stdenv.lib; [ ]
+ ++ optionals stdenv.isDarwin [ Security CoreServices ];
+
+ # The rusty_v8 package will try to download a `librusty_v8.a` release at build time to our read-only filesystem
+ # To avoid this we pre-download the file and place it in the locations it will require it in advance
+ preBuild = ''
+ # Check the rusty_v8 lib downloaded matches the Cargo.lock file
+ rusty_v8_ver="$(grep 'name = "rusty_v8"' -A 1 Cargo.lock | grep "version =" | cut -d\" -f2)"
+ if [ "${rustyV8Lib.meta.version}" != "$rusty_v8_ver" ]; then
+ printf "%s\n" >&2 \
+ "version mismatch between 'rusty_v8' in Cargo.lock and downloaded library:" \
+ " wanted: ${rustyV8Lib.meta.version}" \
+ " got: $rusty_v8_ver"
+ exit 1
+ fi;
+
+ _rusty_v8_setup() {
+ for v in "$@"; do
+ dir="target/$v/gn_out/obj"
+ mkdir -p "$dir" && cp "${rustyV8Lib}" "$dir/librusty_v8.a"
+ done
+ }
+
+ # Copy over the `librusty_v8.a` file inside target/XYZ/gn_out/obj, symlink not allowed
+ _rusty_v8_setup "debug" "release" "${arch}/release"
+ '';
+
+ # Set home to existing env var TMP dir so tests that write there work correctly
+ preCheck = ''
+ export HOME="$TMPDIR"
+ '';
+
+ checkFlags = [
+ # Strace not allowed on hydra
+ "--skip benchmark_test"
+
+ # Tests that try to write to `/build/source/target/debug`
+ "--skip _017_import_redirect"
+ "--skip https_import"
+ "--skip js_unit_tests"
+ "--skip lock_write_fetch"
+
+ # Cargo test runs a deno test on the std lib with sub-benchmarking-tests,
+ # The sub-sub-tests that are failing:
+ # forAwaitFetchDenolandX10, promiseAllFetchDenolandX10is
+ # Trying to access https://deno.land/ on build's limited network access
+ "--skip std_tests"
+
+ # Fails on aarch64 machines
+ # tracking issue: https://github.com/denoland/deno/issues/5324
+ "--skip run_v8_flags"
+
+ # Skip for multiple reasons:
+ # downloads x86_64 binary on aarch64 machines
+ # tracking issue: https://github.com/denoland/deno/pull/5402
+ # downloads a binary that needs ELF patching & tries to run imediately
+ # upgrade will likely never work with nix as it tries to replace itself
+ # code: https://github.com/denoland/deno/blob/v1.0.0/cli/upgrade.rs#L211
+ "--skip upgrade_in_tmpdir"
+ "--skip upgrade_with_version_in_tmpdir"
+ ];
+
+ # TODO: Move to enhanced installShellCompletion when merged: PR #83630
+ postInstall = ''
+ $out/bin/deno completions bash > deno.bash
+ $out/bin/deno completions fish > deno.fish
+ $out/bin/deno completions zsh > _deno
+ installShellCompletion deno.{bash,fish} --zsh _deno
+ '';
+
+ meta = with stdenv.lib; {
+ homepage = "https://deno.land/";
+ description = "A secure runtime for JavaScript and TypeScript";
+ longDescription = ''
+ Deno aims to be a productive and secure scripting environment for the modern programmer.
+ Deno will always be distributed as a single executable.
+ Given a URL to a Deno program, it is runnable with nothing more than the ~15 megabyte zipped executable.
+ Deno explicitly takes on the role of both runtime and package manager.
+ It uses a standard browser-compatible protocol for loading modules: URLs.
+ Among other things, Deno is a great replacement for utility scripts that may have been historically written with
+ bash or python.
+ '';
+ license = licenses.mit;
+ maintainers = with maintainers; [ jk ];
+ platforms = [ "x86_64-linux" "aarch64-linux" "x86_64-darwin" ];
+ };
+}
diff --git a/nixpkgs/pkgs/development/web/flyctl/default.nix b/nixpkgs/pkgs/development/web/flyctl/default.nix
index 9cf73bd15f4..33928601591 100644
--- a/nixpkgs/pkgs/development/web/flyctl/default.nix
+++ b/nixpkgs/pkgs/development/web/flyctl/default.nix
@@ -2,26 +2,25 @@
buildGoModule rec {
pname = "flyctl";
- version = "0.0.117";
+ version = "0.0.123";
src = fetchFromGitHub {
owner = "superfly";
repo = "flyctl";
rev = "v${version}";
- sha256 = "0i9azvhlwp5g699yagfbd5rnsr5kdnbw6lsz28nz1dzvmrj9xp7w";
+ sha256 = "1gs796n2cw8kpfsqr21zqxzp8dmnhhmjfy7vnpi838566i5ql9q3";
};
preBuild = ''
go generate ./...
'';
- preFixup = ''
- rm $out/bin/doc
- rm $out/bin/helpgen
- '';
+ subPackages = [ "." ];
vendorSha256 = "10wcyxzkwvbhf86dq1rh852zgdg28draay0515zp459z34vv4zna";
+ buildFlagsArray = [ "-ldflags=-s -w -X github.com/superfly/flyctl/flyctl.Version=${version} -X github.com/superfly/flyctl/flyctl.Commit=${src.rev} -X github.com/superfly/flyctl/flyctl.BuildDate=1970-01-01T00:00:00+0000 -X github.com/superfly/flyctl/flyctl.Environment=production" ];
+
meta = with lib; {
description = "Command line tools for fly.io services";
homepage = "https://fly.io/";
diff --git a/nixpkgs/pkgs/development/web/minify/default.nix b/nixpkgs/pkgs/development/web/minify/default.nix
index 7396063a3f1..b813e87b543 100644
--- a/nixpkgs/pkgs/development/web/minify/default.nix
+++ b/nixpkgs/pkgs/development/web/minify/default.nix
@@ -2,13 +2,13 @@
buildGoModule rec {
pname = "minify";
- version = "2.7.3";
+ version = "2.7.4";
src = fetchFromGitHub {
owner = "tdewolff";
repo = pname;
rev = "v${version}";
- sha256 = "12jns7m9liyjg9wy8ynvji2d2g4k2z1ymp6k3610mivmvg159sy4";
+ sha256 = "06xzb681g4lfrpqa1rhpq5mm83vpik8qp6gjxqm2n21bfph88jm2";
};
vendorSha256 = "120d3nzk8cr5496cxp5p6ydlzw9mmpg7dllqhv1kpgwlbxmd8vr3";
diff --git a/nixpkgs/pkgs/development/web/nodejs/v12.nix b/nixpkgs/pkgs/development/web/nodejs/v12.nix
index af8595b5641..ae1536de34a 100644
--- a/nixpkgs/pkgs/development/web/nodejs/v12.nix
+++ b/nixpkgs/pkgs/development/web/nodejs/v12.nix
@@ -8,6 +8,6 @@ let
in
buildNodejs {
inherit enableNpm;
- version = "12.16.3";
- sha256 = "18srfcv9zi39960szdnd4rgfj9w295z1agjvpw8arwn75449nmgh";
+ version = "12.17.0";
+ sha256 = "0csfdwzn1qssmkanxa8m3znjcc6h5qjaw934mkq9bz7zly39wvfa";
}
diff --git a/nixpkgs/pkgs/development/web/nodejs/v14.nix b/nixpkgs/pkgs/development/web/nodejs/v14.nix
index 1c9c353fd51..da7bf09e9fd 100644
--- a/nixpkgs/pkgs/development/web/nodejs/v14.nix
+++ b/nixpkgs/pkgs/development/web/nodejs/v14.nix
@@ -9,6 +9,6 @@ let
in
buildNodejs {
inherit enableNpm;
- version = "14.2.0";
- sha256 = "1kqnkqkv2chw9s0hazbaba5y1555h526825xqk4rr441wcxcrzcf";
+ version = "14.3.0";
+ sha256 = "0xqs9z0pxx8m5dk9gm1r9pxfk9vdmpvfsj94mfdkqar578nfm8gi";
}
diff --git a/nixpkgs/pkgs/development/web/postman/default.nix b/nixpkgs/pkgs/development/web/postman/default.nix
index 2b3bf34807a..e56ab1bbba7 100644
--- a/nixpkgs/pkgs/development/web/postman/default.nix
+++ b/nixpkgs/pkgs/development/web/postman/default.nix
@@ -7,11 +7,11 @@
stdenv.mkDerivation rec {
pname = "postman";
- version = "7.23.0";
+ version = "7.24.0";
src = fetchurl {
url = "https://dl.pstmn.io/download/version/${version}/linux64";
- sha256 = "0m3pjimpahc3kiwdq21rwyg6ckdh3avhzx3apmygisaz4gnab94d";
+ sha256 = "0wriyj58icgljmghghyxi1mnjr1vh5jyp8lzwcf6lcsdvsh0ccmw";
name = "${pname}.tar.gz";
};
diff --git a/nixpkgs/pkgs/development/web/twitter-bootstrap/default.nix b/nixpkgs/pkgs/development/web/twitter-bootstrap/default.nix
index a9496f26dec..87a25ef0bf9 100644
--- a/nixpkgs/pkgs/development/web/twitter-bootstrap/default.nix
+++ b/nixpkgs/pkgs/development/web/twitter-bootstrap/default.nix
@@ -2,11 +2,11 @@
stdenv.mkDerivation rec {
pname = "bootstrap";
- version = "4.4.1";
+ version = "4.5.0";
src = fetchurl {
url = "https://github.com/twbs/bootstrap/releases/download/v${version}/${pname}-${version}-dist.zip";
- sha256 = "1gdzp54f2xyvbw9hnyjlj4s69jvxkxr3hqclq1c8ajmx39s7rymz";
+ sha256 = "0wnz7112qfar5qaadxbsp2qpcjaqn0mmzi4j0v4z6rx6lyvar5mb";
};
buildInputs = [ unzip ];