Skip to content

Commit

Permalink
pump.io: 1.0.0 -> 3.0.0
Browse files Browse the repository at this point in the history
The package stopped building for some unknown reason (npm could no
longer fetch a module).

This is one of the build failures listed in #23253.

    http://hydra.nixos.org/build/49551309
    http://hydra.nixos.org/build/49548753

Easiest fix is to upgrade to latest stable version and regenerate
packages with node2nix.

The databank-memcached dependency needed to be dropped due to
dependency failures.
  • Loading branch information
rvl authored and Mic92 committed Mar 12, 2017
1 parent 453529b commit 252e58a
Show file tree
Hide file tree
Showing 2 changed files with 1,244 additions and 867 deletions.
14 changes: 11 additions & 3 deletions pkgs/servers/web-apps/pump.io/generate.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,23 @@ set -e
# Also jshon does funny things with slashes in strings, which can be
# fixed with sed.

curl https://raw.githubusercontent.com/e14n/pump.io/v1.0.0/package.json | \
VERSION="3.0.0"
URL="https://registry.npmjs.org/pump.io/-/pump.io-$VERSION.tgz"
SHA1="ycfm7ak83xi8mgafhp9q0n6n3kzmdz16"

curl https://raw.githubusercontent.com/e14n/pump.io/v$VERSION/package.json | \
jshon -e dependencies \
-s '*' -i databank-mongodb \
-s '*' -i databank-redis \
-s '*' -i databank-memcached \
-s '*' -i databank-lrucache \
-p | sed 's=\\/=/=g' > full-package.json

node2nix --input full-package.json --composition composition.nix --node-env ../../../development/node-packages/node-env.nix

# overriding nodePackages src doesn't seem to work, so...
sed -i 's|src = ./.|src = fetchurl { url = "https://registry.npmjs.org/pump.io/-/pump.io-1.0.0.tgz"; sha1 = "404mzdqzknrv7pl9qasksi791cc00bbd"; }|' node-packages.nix
sed -i "s|src = ./.|src = fetchurl { url = \"$URL\"; sha1 = \"$SHA1\"; }|" node-packages.nix

# fetchgit or node2nix is having problems with submodules or something.
# This is the sha256 for connect-auth which is a npm dep hosted on
# github and containing submodules.
sed -i "s|d08fecbb72aff14ecb39dc310e8965ba92228f0c0def41fbde3db5ea7a1aac19|1b052xpj10hanx21286i5w0jrwxxkiwbdzpdngg9s2j1m7a9543b|" node-packages.nix

0 comments on commit 252e58a

Please sign in to comment.