top-level: get rid of npm2nix build

This commit is contained in:
Maximilian Bosch 2017-11-14 12:11:37 +01:00
parent 9e0f86131f
commit daf76db4a5
No known key found for this signature in database
GPG key ID: 091DBF4D1FC46B8E
3 changed files with 0 additions and 53652 deletions

File diff suppressed because it is too large Load diff

View file

@ -1,192 +0,0 @@
[
"async"
, "almond"
, "amdefine"
, "ansi-remover"
, "assert"
, "aws-sdk"
, "backbone"
, "bcrypt"
, "bip-pod-alchemy"
, "bip-pod-chain"
, "bip-pod-circonus"
, "bip-pod-coindesk"
, "bip-pod-craigslist"
, "bip-pod-crypto"
, "bip-pod-dropbox"
, "bip-pod-embedly"
, "bip-pod-evernote"
, "bip-pod-facebook"
, "bip-pod-flickr"
, "bip-pod-github"
, "bip-pod-github"
, "bip-pod-github"
, "bip-pod-gmail"
, "bip-pod-google"
, "bip-pod-google-drive"
, "bip-pod-imgur"
, "bip-pod-instagram"
, "bip-pod-kato"
, "bip-pod-keenio"
, "bip-pod-mailchimp"
, "bip-pod-mailgun"
, "bip-pod-mixcloud"
, "bip-pod-mongodb"
, "bip-pod-numerous"
, "bip-pod-pushbullet"
, "bip-pod-pusher"
, "bip-pod-soundcloud"
, "bip-pod-statuscake"
, "bip-pod-todoist"
, "bip-pod-trello"
, "bip-pod-trello"
, "bip-pod-twilio"
, "bip-pod-twitter"
, "bip-pod-witai"
, "bip-pod-wordpress"
, "bip-pod-zoho"
, "bipio"
, "bower"
, "bower2nix"
, "browserchannel"
, "browserify"
, "buffertools"
, "castnow"
, "chai"
, "coffee-script"
, "connect-flash"
, "connect-jade-static"
, "connect-mongo"
, "cordova"
, "coveralls"
, "deepmerge"
, "docker-registry-server"
, "escape-html"
, "eslint"
, "express"
, "express-form"
, "extend"
, "faye-websocket"
, "flatiron"
, "forever"
, "forever-monitor"
, "fs-walk"
, "git-run"
, "gridfs-stream"
, "grunt-cli"
, "grunt-contrib-cssmin"
, "grunt-contrib-eslint"
, "grunt-contrib-jshint"
, "grunt-contrib-less"
, "grunt-contrib-requirejs"
, "grunt-contrib-uglify"
, "grunt-karma"
, "grunt-sed"
, "gulp"
, "gzippo"
, "hipache"
, "i18next"
, "ironhorse"
, "istanbul"
, "jade"
, "jayschema"
, "jfs"
, "js-yaml"
, "jshint"
, "json"
, "jsontool"
, "karma"
, "karma-chrome-launcher"
, "karma-coverage"
, "karma-junit-reporter"
, "karma-mocha"
, "karma-requirejs"
, "karma-sauce-launcher"
, "knox"
, "kue"
, "lcov-result-merger"
, "less"
, "ltx"
, "marked"
, "meat"
, "mkdirp"
, "mocha"
, "mocha-phantomjs"
, "mocha-unfunk-reporter"
, "mongoose-schema-extend"
, "nconf"
, "nib"
, "nijs"
, "node-expat"
, "node-gyp"
, "node-inspector"
, "node-protobuf"
, "node-red"
, "node-stringprep"
, "node-uuid"
, "node-xmpp-client"
, "node-xmpp-component"
, "node-xmpp-core"
, "node-xmpp-joap"
, "node-xmpp-server"
, "node-xmpp-serviceadmin"
, "nodemon"
, "npm"
, "npm-check-updates"
, "optimist"
, "optparse"
, "owl-deepcopy"
, { "parsoid": "0.4.1" }
, "passport"
, "passport-http"
, "passport-local"
, "peerflix"
, "peerflix-server"
, "phantomjs"
, "plist-native"
, "posix"
, "pure"
, "react"
, "react-tools"
, "redis"
, "rethinkdb"
, "rollup"
, "s3http"
, "selenium-webdriver"
, "semver"
, "shelljs"
, "should"
, "sinon"
, "sinopia"
, "slasp"
, "sleep"
, "sloc"
, "smartdc"
, "sockjs"
, "source-map"
, "stylus"
, "svgo"
, "tar"
, "temp"
, "tern"
, "timezone"
, "titanium"
, "typescript"
, "uglify-js"
, "underscore"
, "ungit"
, "view-helpers"
, "walk"
, "webdrvr"
, "webpack"
, "winston"
, "wscat"
, "wu"
, "x509"
, "yarn"
, { "guifi-earth": "https://github.com/jmendeth/guifi-earth/tarball/f3ee96835fd4fb0e3e12fadbd2cb782770d64854 " }
, { "mongoose": "3.6.x" }
, { "node-uptime": "https://github.com/fzaninotto/uptime/tarball/1c65756575f90f563a752e2a22892ba2981c79b7" }
, { "npm2nix": "git://github.com/NixOS/npm2nix.git#5.12.0" }
, { "swig": "0.14.x" }
]

View file

@ -1,102 +0,0 @@
{
stdenv, pkgs, nodejs
# Self-reference
, self
# Needed natives for installation
, neededNatives ? [pkgs.python] ++ stdenv.lib.optionals stdenv.isLinux [ pkgs.utillinux ]
# Attribute set of generated packages
, generated ? pkgs.callPackage ./node-packages-generated.nix { inherit self; }
# Attribute set of overrides
, overrides ? {}
, ...
} @ args:
with stdenv.lib;
let
removeDeps = remove: deps: filterAttrs (n: d: all (r: r != d.pkgName) remove) deps;
replaceDep = replace: deps: mapAttrs (n: d: if d.pkgName == replace.pkgName then replace else d) deps;
in rec {
overrides = {
phantomjs.buildInputs = [ pkgs.phantomjs ];
"node-expat".buildInputs = [ pkgs.expat ];
"node-stringprep".buildInputs = [ pkgs.icu pkgs.which ];
"node-protobuf".buildInputs = [ pkgs.protobuf ];
"tap-0.3.3".patchPhase = ''
substituteInPlace package.json --replace '"tap-consumer",' ""
'';
"node-uptime" = (p: {
# Net-ping is not really used
patchPhase = ''
${self.json}/bin/json -I -f package.json -e 'delete this.dependencies["net-ping"]'
'';
deps = removeDeps ["net-ping"] p.deps;
});
bipio = (p: {
patchPhase = ''
substituteInPlace src/bootstrap.js --replace "memwatch = require('memwatch')," ""
${self.json}/bin/json -I -f package.json -e 'this.scripts.install=""'
${self.json}/bin/json -I -f package.json -e 'delete this.dependencies.sleep'
${self.json}/bin/json -I -f package.json -e 'delete this.dependencies.memwatch'
${self.json}/bin/json -I -f package.json -e 'delete this.dependencies["webkit-devtools-agent"]'
'';
deps = replaceDep self.sleep (removeDeps ["memwatch" "webkit-devtools-agent"] p.deps);
});
bip-pod.patchPhase = ''
substituteInPlace index.js --replace \
"__dirname + (literal ? '/' : '/../bip-pod-') + podName" \
"(literal ? __dirname + '/' : \"bip-pod-\") + podName"
'';
webdrvr.preBuild = ''
mkdir ../webdrvr
ln -s ${pkgs.fetchurl {
url = "https://selenium-release.storage.googleapis.com/2.43/selenium-server-standalone-2.43.1.jar";
sha1 = "ef1b5f8ae9c99332f99ba8794988a1d5b974d27b";
}} ../webdrvr/selenium-server-standalone-2.43.1.jar
ln -s ${pkgs.fetchurl {
url = "http://chromedriver.storage.googleapis.com/2.10/chromedriver_linux64.zip";
sha1 = "26220f7e43ee3c0d714860db61c4d0ecc9bb3d89";
}} ../webdrvr/chromedriver_linux64.zip
'';
bower2nix.buildInputs = [ pkgs.makeWrapper ];
bower2nix.postInstall = ''
for prog in bower2nix fetch-bower; do
wrapProgram "$out/bin/$prog" --prefix PATH : ${stdenv.lib.makeBinPath [ pkgs.git pkgs.nix ]}
done
'';
} // args.overrides or {};
# Apply overrides and back compatiblity transformations
buildNodePackage = {...} @ args:
let
pkg = makeOverridable (
pkgs.callPackage ../development/web/nodejs/build-node-package.nix {
inherit nodejs neededNatives;
}
) (args // (optionalAttrs (isList args.src) {
# Backwards compatibility
src = head args.src;
}) // (optionalAttrs (attrByPath ["passthru" "names"] null args != null) {
pkgName = head args.passthru.names;
}));
override = overrides.${args.name} or overrides.${pkg.pkgName} or {};
in pkg.override override;
# Backwards compatibility
patchSource = fn: srcAttrs: fn srcAttrs;
patchLatest = patchSource pkgs.fetchurl;
/* Put manual packages below here (ideally eventually managed by npm2nix */
} // (
if isAttrs generated then generated
# Backwards compatiblity
else pkgs.callPackage generated { inherit self; }
)