summaryrefslogtreecommitdiffstats
path: root/lass/5pkgs/newsbot-js/default.nix
diff options
context:
space:
mode:
authortv <tv@krebsco.de>2016-04-07 20:29:33 +0200
committertv <tv@krebsco.de>2016-04-07 20:29:33 +0200
commite1a287c78bab2847fee7c4f1a18a765d89ca373f (patch)
tree336fc62199af9b1c38acf2de0a2bafbe8ed72efc /lass/5pkgs/newsbot-js/default.nix
parent033bf438bd2ae39d6a465c475500a24514cc2739 (diff)
parent66b7a76a26a40bd4ecca8c83aafe5f2e5fefa461 (diff)
Merge remote-tracking branch 'gum/master'
Diffstat (limited to 'lass/5pkgs/newsbot-js/default.nix')
-rw-r--r--lass/5pkgs/newsbot-js/default.nix60
1 files changed, 0 insertions, 60 deletions
diff --git a/lass/5pkgs/newsbot-js/default.nix b/lass/5pkgs/newsbot-js/default.nix
deleted file mode 100644
index cabd7422c..000000000
--- a/lass/5pkgs/newsbot-js/default.nix
+++ /dev/null
@@ -1,60 +0,0 @@
-{ stdenv, makeWrapper, lib, buildEnv, fetchgit, nodePackages, nodejs }:
-
-with lib;
-
-let
- np = nodePackages.override {
- generated = ./packages.nix;
- self = np;
- };
-
- node_env = buildEnv {
- name = "node_env";
- paths = [
- np.feedparser
- np.form-data
- np.irc
- np.request
- np.shell-quote
- ];
- pathsToLink = [ "/lib" ];
- ignoreCollisions = true;
- };
-
-in nodePackages.buildNodePackage {
- name = "newsbot-js";
-
- src = fetchgit {
- url = "http://cgit.echelon/newsbot-js/";
- rev = "802b172d0eed6c9625a9cb5db408f5cc8c01784e";
- sha256 = "794fc7845aca311f7cf7b6bdc109b5a25d0e2299322bc6612edadc477b2536e2";
- };
-
- phases = [
- "unpackPhase"
- "installPhase"
- ];
-
- deps = (filter (v: nixType v == "derivation") (attrValues np));
-
- buildInputs = [
- nodejs
- makeWrapper
- ];
-
- installPhase = ''
- mkdir -p $out/bin
-
- cp newsbot.js $out/
- cat > $out/newsbot << EOF
- ${nodejs}/bin/node $out/newsbot.js
- EOF
- chmod +x $out/newsbot
-
- wrapProgram $out/newsbot \
- --prefix NODE_PATH : ${node_env}/lib/node_modules
-
- ln -s $out/newsbot /$out/bin/newsbot
- '';
-
-}