From 8c05a809d70aeeb6c6e23d405ba693040ad00730 Mon Sep 17 00:00:00 2001 From: Parthiv Seetharaman Date: Sun, 16 Jan 2022 21:29:21 -0800 Subject: init the module, README, packages, and other stuff --- pkgs/mx-puppet-slack/generate.sh | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100755 pkgs/mx-puppet-slack/generate.sh (limited to 'pkgs/mx-puppet-slack/generate.sh') diff --git a/pkgs/mx-puppet-slack/generate.sh b/pkgs/mx-puppet-slack/generate.sh new file mode 100755 index 0000000..d36f515 --- /dev/null +++ b/pkgs/mx-puppet-slack/generate.sh @@ -0,0 +1,24 @@ +#!/usr/bin/env bash + + +#!/usr/bin/env nix-shell +#! nix-shell -i bash -p nodePackages.node2nix + +# No official release +rev=691e53d2d703bd169e1f23a8d8dff3f008d8c4ef +u=https://raw.githubusercontent.com/Sorunome/mx-puppet-slack/$rev +# Download package.json and package-lock.json +curl -O $u/package.json +curl -O $u/package-lock.json + +node2nix \ + --nodejs-12 \ + --node-env node-env.nix \ + --input package.json \ + --lock package-lock.json \ + --output node-packages.nix \ + --composition node-composition.nix + +sed -i 's||../../..|' node-composition.nix + +rm -f package.json package-lock.json -- cgit v1.2.3