summaryrefslogtreecommitdiffstats
path: root/krebs/5pkgs/simple/newsbot-js/default.nix
diff options
context:
space:
mode:
authorlassulus <lassulus@lassul.us>2021-01-07 23:17:07 +0100
committerlassulus <lassulus@lassul.us>2021-01-07 23:17:07 +0100
commitdbb2024585e67c3ceaf968255263a0662c174c19 (patch)
treec9c352ad6c7cd6f78a9ba6eea88d7ac6799c92ae /krebs/5pkgs/simple/newsbot-js/default.nix
parentfaefe4c3c83ab24fcdd86cdf11f634f7390de22c (diff)
newsbot-js: remove package and module
Diffstat (limited to 'krebs/5pkgs/simple/newsbot-js/default.nix')
-rw-r--r--krebs/5pkgs/simple/newsbot-js/default.nix58
1 files changed, 0 insertions, 58 deletions
diff --git a/krebs/5pkgs/simple/newsbot-js/default.nix b/krebs/5pkgs/simple/newsbot-js/default.nix
deleted file mode 100644
index 0ac66f433..000000000
--- a/krebs/5pkgs/simple/newsbot-js/default.nix
+++ /dev/null
@@ -1,58 +0,0 @@
-{ stdenv, makeWrapper, lib, buildEnv, fetchgit, nodejs, pkgs, icu }:
-
-with lib;
-
-let
- nodeEnv = import <nixpkgs/pkgs/development/node-packages/node-env.nix> {
- inherit (pkgs) stdenv python2 utillinux runCommand writeTextFile;
- nodejs = nodejs;
- libtool = if pkgs.stdenv.isDarwin then pkgs.darwin.cctools else null;
- };
-
- node_env = pkgs.buildEnv {
- name = "go-node_env";
- paths = attrValues (import ./node-packages.nix {
- inherit (pkgs) fetchurl fetchgit;
- inherit nodeEnv;
- globalBuildInputs = [
- icu.dev
- ];
- });
- };
-
-
-in stdenv.mkDerivation {
- name = "newsbot-js";
-
- src = fetchgit {
- url = "http://cgit.prism/newsbot-js/";
- rev = "09e01639be4ea9691cf5b33f7d9057b68ac98079";
- sha256 = "28ffbed66c2efcd194c47823c7d5d5533c80852fc0cf9d9d4ee609c71d50c142";
- };
-
- phases = [
- "unpackPhase"
- "installPhase"
- ];
-
- 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
- '';
-
-}